mirror of https://github.com/grpc/grpc-go.git
				
				
				
			Merge pull request #995 from yangmls/master
correct errors in documentation
This commit is contained in:
		
						commit
						5e3de3f217
					
				| 
						 | 
				
			
			@ -26,7 +26,7 @@ server.Serve(lis)
 | 
			
		|||
## Google Compute Engine (GCE)
 | 
			
		||||
 | 
			
		||||
```Go
 | 
			
		||||
conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, ""), grpc.WithPerRPCCredentials(oauth.NewComputeEngine())))
 | 
			
		||||
conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")), grpc.WithPerRPCCredentials(oauth.NewComputeEngine()))
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## JWT
 | 
			
		||||
| 
						 | 
				
			
			@ -36,6 +36,6 @@ jwtCreds, err := oauth.NewServiceAccountFromFile(*serviceAccountKeyFile, *oauthS
 | 
			
		|||
if err != nil {
 | 
			
		||||
  log.Fatalf("Failed to create JWT credentials: %v", err)
 | 
			
		||||
}
 | 
			
		||||
conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, ""), grpc.WithPerRPCCredentials(jwtCreds)))
 | 
			
		||||
conn, err := grpc.Dial(serverAddr, grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, "")), grpc.WithPerRPCCredentials(jwtCreds))
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue