Skip to content

Commit

Permalink
Merge pull request grpc#394 from codegoalie/patch-1
Browse files Browse the repository at this point in the history
Use defined variable in C++ auth example
  • Loading branch information
vjpai authored Mar 21, 2017
2 parents 1084ab6 + 5aa2045 commit 9d3ffe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ more languages in our Examples section below.
// Create a default SSL ChannelCredentials object.
auto creds = grpc::SslCredentials(grpc::SslCredentialsOptions());
// Create a channel using the credentials created in the previous step.
auto channel = grpc::CreateChannel(server_name, creds);
auto channel = grpc::CreateChannel(server_name, channel_creds);
// Create a stub on the channel.
std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));
// Make actual RPC calls on the stub.
Expand Down

0 comments on commit 9d3ffe6

Please # to comment.