Merge pull request #77 from a11r/d6

Fix the auth doc to refer to the correct method name.
This commit is contained in:
Yang Gao 2015-02-25 12:03:44 -08:00
commit cdf7ca9751
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ passed to the factory method.
gRPC applications can use a simple API to create a credential that works in various deployment scenarios. gRPC applications can use a simple API to create a credential that works in various deployment scenarios.
``` ```
std::unique_ptr<Credentials> creds = CredentialsFactory::DefaultGoogleCredentials(); std::unique_ptr<Credentials> creds = CredentialsFactory::GoogleDefaultCredentials();
// Create a channel, stub and make RPC calls (same as in the previous example) // Create a channel, stub and make RPC calls (same as in the previous example)
std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args); std::shared_ptr<ChannelInterface> channel = CreateChannel(server_name, creds, channel_args);
std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel)); std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));