Skip to content

Commit

Permalink
Doc Fixit: examples/cpp/helloworld/README.md
Browse files Browse the repository at this point in the history
Use 'RegisterService' for registering async services.
  • Loading branch information
y-zeng committed Mar 17, 2016
1 parent 921f4b0 commit c67a8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cpp/helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```
Expand Down

0 comments on commit c67a8ec

Please sign in to comment.