Commit 53bb7518 authored by David Symonds's avatar David Symonds

context: Fix WithValue example code.

LGTM=adg
R=adg
CC=golang-codereviews, sameer
https://golang.org/cl/169540043
parent 240cea5a
......@@ -124,7 +124,7 @@ type Context interface {
//
// // NewContext returns a new Context that carries value u.
// func NewContext(ctx context.Context, u *User) context.Context {
// return context.WithValue(userKey, u)
// return context.WithValue(ctx, userKey, u)
// }
//
// // FromContext returns the User value stored in ctx, if any.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment