From 2915e44dac0b51bf2ce35900532d5af65288aadb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 30 Aug 2017 07:50:13 -0700 Subject: [PATCH] =?UTF-8?q?context:=20fix=20lint=20warning=20=E2=80=9Cdrop?= =?UTF-8?q?=20=3D=200=20from=20declaration=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {