Unverified Commit 491290a3 authored by ZX Xu's avatar ZX Xu Committed by GitHub

Update client.md

`cntl` is not a pointer here
parent aa93ede6
...@@ -209,7 +209,7 @@ XXX_Stub stub(&channel); ...@@ -209,7 +209,7 @@ XXX_Stub stub(&channel);
request.set_foo(...); request.set_foo(...);
cntl.set_timeout_ms(...); cntl.set_timeout_ms(...);
stub.some_method(&cntl, &request, &response, NULL); stub.some_method(&cntl, &request, &response, NULL);
if (cntl->Failed()) { if (cntl.Failed()) {
// RPC failed. fields in response are undefined, don't use. // RPC failed. fields in response are undefined, don't use.
} else { } else {
// RPC succeeded, response has what we want. // RPC succeeded, response has what we want.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment