Skip to content
Snippets Groups Projects
Commit 4302be78 authored by Stanley Cheung's avatar Stanley Cheung
Browse files

Merge pull request #5798 from y-zeng/documentation

Doc Fixit: examples/cpp/helloworld/README.md
parents 47277bc1 c67a8ec1
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is ...@@ -207,7 +207,7 @@ completion queue to return the tag. The basic flow is
helloworld::Greeter::AsyncService service; helloworld::Greeter::AsyncService service;
ServerBuilder builder; ServerBuilder builder;
builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials()); builder.AddListeningPort("0.0.0.0:50051", InsecureServerCredentials());
builder.RegisterAsyncService(&service); builder.RegisterService(&service);
auto cq = builder.AddCompletionQueue(); auto cq = builder.AddCompletionQueue();
auto server = builder.BuildAndStart(); auto server = builder.BuildAndStart();
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment