Skip to content

Commit

Permalink
Use NewOutgoingContext in the metadata doc (#1425)
Browse files Browse the repository at this point in the history
Removed the deprecated `NewContext` from the doc so that the
documentation would match example given in the doc
  • Loading branch information
travissalascox authored and menghanl committed Aug 4, 2017
1 parent 53ae6b7 commit 39c8c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/grpc-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 39c8c38

Please sign in to comment.