aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-03-17 11:36:59 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-03-17 11:36:59 -0700
commitc67a8ec111c6fafeab879b63a594aabde08fb4d2 (patch)
treeffe5772bd30ae689312dc9a85f97ff2f4b7fdc6c /examples/cpp
parent921f4b0a6e0c77f8c1d0f48b72d7087a21f5e311 (diff)
Doc Fixit: examples/cpp/helloworld/README.md
Use 'RegisterService' for registering async services.
Diffstat (limited to 'examples/cpp')
-rw-r--r--examples/cpp/helloworld/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp/helloworld/README.md b/examples/cpp/helloworld/README.md
index 8e11f7cdf3..04283eabc3 100644
--- a/examples/cpp/helloworld/README.md
+++ b/examples/cpp/helloworld/README.md
@@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is
helloworld::Greeter::AsyncService service;
ServerBuilder builder;
builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials());
- builder.RegisterAsyncService(&service);
+ builder.RegisterService(&service);
auto cq = builder.AddCompletionQueue();
auto server = builder.BuildAndStart();
```