Skip to content

Commit

Permalink
fix transport example
Browse files Browse the repository at this point in the history
Change-Id: Ifc3abcb63c5bfbb68637fee199089307f8a9e3e0
Reviewed-on: https://code-review.googlesource.com/c/google-api-go-client/+/41910
Reviewed-by: kokoro <[email protected]>
Reviewed-by: Jean de Klerk <[email protected]>
  • Loading branch information
sergeylanzman authored and jeanbza committed Jun 11, 2019
1 parent 5213b80 commit 43bcdca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Example_applicationDefaultCredentials() {
// Default Creds as specified at https://godoc.org/golang.org/x/oauth2/google#FindDefaultCredentials.
//
// Note: Given the same set of options, transport.NewHTTPClient and
// transport.NewGRPCClient use the same credentials.
// transport.DialGRPC use the same credentials.
c, _, err := transport.NewHTTPClient(ctx)
if err != nil {
log.Fatal(err)
Expand All @@ -43,7 +43,7 @@ func Example_withCredentialsFile() {
// Download service account creds per https://cloud.google.com/docs/authentication/end-user.
//
// Note: Given the same set of options, transport.NewHTTPClient and
// transport.NewGRPCClient use the same credentials.
// transport.DialGRPC use the same credentials.
c, _, err := transport.NewHTTPClient(ctx, option.WithCredentialsFile("/path/to/service-account-creds.json"))
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 43bcdca

Please sign in to comment.