aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@google.com>2017-08-30 07:50:13 -0700
committerIan Lance Taylor <iant@golang.org>2017-08-30 17:06:30 +0000
commit2915e44dac0b51bf2ce35900532d5af65288aadb (patch)
treea7363558d9a2ed706b3a66f42f90f1db2b15ae5c /src/context
parent782ee23884b7f812ab3191b9d839955493d27c73 (diff)
downloadgo-2915e44dac0b51bf2ce35900532d5af65288aadb.tar.gz
go-2915e44dac0b51bf2ce35900532d5af65288aadb.zip
context: fix lint warning “drop = 0 from declaration”
Previously, the suggested code would result in the following golint warning: “should drop = 0 from declaration of var errorsOnlyKey; it is the zero value” Change-Id: I1a302c1e40ca89acbc76897e39097ecd04865460 Reviewed-on: https://go-review.googlesource.com/60290 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r--src/context/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context/context.go b/src/context/context.go
index 892ff27c65..0fbb572b8e 100644
--- a/src/context/context.go
+++ b/src/context/context.go
@@ -136,7 +136,7 @@ type Context interface {
// // userKey is the key for user.User values in Contexts. It is
// // unexported; clients use user.NewContext and user.FromContext
// // instead of using this key directly.
- // var userKey key = 0
+ // var userKey key
//
// // NewContext returns a new Context that carries value u.
// func NewContext(ctx context.Context, u *User) context.Context {