From 5e6a7e9b860d7c8f589eec3c123469ea8071689f Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Mon, 23 Aug 2021 19:13:35 +0930 Subject: embed: remove reference to global variables in docs Refering to variable is both redundant since package scope is used, and incorrect since global variables are not described in the spec. Change-Id: Ib08a9f072fc800ee36549f758b68167d8f044878 Reviewed-on: https://go-review.googlesource.com/c/go/+/344214 Reviewed-by: Ian Lance Taylor Trust: Alexander Rakoczy Run-TryBot: Alexander Rakoczy TryBot-Result: Go Bot --- src/embed/embed.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/embed/embed.go b/src/embed/embed.go index 851cc216fca..5dcd7f227d8 100644 --- a/src/embed/embed.go +++ b/src/embed/embed.go @@ -83,8 +83,7 @@ // // The //go:embed directive can be used with both exported and unexported variables, // depending on whether the package wants to make the data available to other packages. -// It can only be used with global variables at package scope, -// not with local variables. +// It can only be used with variables at package scope, not with local variables. // // Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links. // Matches for empty directories are ignored. After that, each pattern in a //go:embed line -- cgit v1.2.3-54-g00ecf