aboutsummaryrefslogtreecommitdiffhomepage
path: root/cpp/helloworld/greeter_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/helloworld/greeter_client.cc')
-rw-r--r--cpp/helloworld/greeter_client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/helloworld/greeter_client.cc b/cpp/helloworld/greeter_client.cc
index c0aec1696a..44e4447f1f 100644
--- a/cpp/helloworld/greeter_client.cc
+++ b/cpp/helloworld/greeter_client.cc
@@ -64,7 +64,7 @@ class GreeterClient {
ClientContext context;
Status status = stub_->SayHello(&context, request, &reply);
- if (status.IsOk()) {
+ if (status.ok()) {
return reply.message();
} else {
return "Rpc failed";