aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp/cpptutorial.md
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-10-17 22:23:02 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-10-17 22:23:02 -0700
commit8c48a2a196e93f69e124464037563eb49a0341d5 (patch)
tree9f1964fe0f13d7d40ee940d10e86a50288ae587e /examples/cpp/cpptutorial.md
parent3bb61d8917a506c8bbeadfa651f59ec37c74849f (diff)
Fixing cpp examples.
Diffstat (limited to 'examples/cpp/cpptutorial.md')
-rw-r--r--examples/cpp/cpptutorial.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp/cpptutorial.md b/examples/cpp/cpptutorial.md
index 78de014f97..cd1cddb111 100644
--- a/examples/cpp/cpptutorial.md
+++ b/examples/cpp/cpptutorial.md
@@ -245,7 +245,7 @@ To call service methods, we first need to create a *stub*.
First we need to create a gRPC *channel* for our stub, specifying the server address and port we want to connect to without SSL:
```cpp
-grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials());
+grpc::CreateChannel("localhost:50051", grpc::InsecureChannelCredentials());
```
Now we can use the channel to create our stub using the `NewStub` method provided in the `RouteGuide` class we generated from our .proto.