Use NewOutgoingContext in the metadata doc (#1425)

Removed the deprecated `NewContext` from the doc so that the
documentation would match example given in the doc
This commit is contained in:
TRAVIS ALLEN SALAS COX
2017-08-04 15:14:02 -05:00
committed by Menghan Li
parent 53ae6b7e90
commit 39c8c3866d

View File

@ -82,7 +82,7 @@ func (s *server) SomeRPC(ctx context.Context, in *pb.SomeRequest) (*pb.SomeRespo
### Sending metadata
To send metadata to server, the client can wrap the metadata into a context using `NewContext`, and make the RPC with this context:
To send metadata to server, the client can wrap the metadata into a context using `NewOutgoingContext`, and make the RPC with this context:
```go
md := metadata.Pairs("key", "val")