Fix typo in Ruby auth example.

The auth guide has a Ruby example that references a non-existent `GRPC::Core::Credentials` class. The class to use instead is `GRPC::Core::ChannelCredentials` as defined here:
bebd20b126/src/ruby/ext/grpc/rb_channel_credentials.c (L237)
This commit is contained in:
Chris Atkins 2019-12-09 10:30:20 +11:00 committed by GitHub
parent 60a30f0b73
commit 05f03c1ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecur
##### With server authentication SSL/TLS
```ruby
creds = GRPC::Core::Credentials.new(load_certs) # load_certs typically loads a CA roots file
creds = GRPC::Core::ChannelCredentials.new(load_certs) # load_certs typically loads a CA roots file
stub = Helloworld::Greeter::Stub.new('myservice.example.com', creds)
```