aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/alldocs.go
diff options
context:
space:
mode:
authorJeff Hodges <jeff@somethingsimilar.com>2023-03-25 23:21:01 +0000
committerGopher Robot <gobot@golang.org>2023-03-29 21:56:16 +0000
commit6e096e2fd5d00164acce57cca80ba188096216fd (patch)
treea2811e3063c65ff1a250b77c798815bb25a1952c /src/cmd/go/alldocs.go
parent0d9eb8bea26a1fbebc149aa1811e5c0d9201dc40 (diff)
downloadgo-6e096e2fd5d00164acce57cca80ba188096216fd.tar.gz
go-6e096e2fd5d00164acce57cca80ba188096216fd.zip
cmd/go: change +build doc references to //go:build
This changes a few references to `+build` into the modern `//go:build`. It was compiled by editing `cmd/go/internal/list/context.go`, running `go test cmd/go -v -run=TestDocsUpToDate -fixdocs`, and then editing list.go and build.go by hand. Change-Id: I00fec55e098bf5100f5a186dd975a6628e15beb8 GitHub-Last-Rev: e0eb9be77e9e409479ef48a65f750546d2a9ddcc GitHub-Pull-Request: golang/go#59245 Reviewed-on: https://go-review.googlesource.com/c/go/+/479417 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r--src/cmd/go/alldocs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index d6701dcfffd..99a4f75ab5a 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -883,9 +883,9 @@
// GOROOT string // Go root
// GOPATH string // Go path
// CgoEnabled bool // whether cgo can be used
-// UseAllFiles bool // use files regardless of +build lines, file names
+// UseAllFiles bool // use files regardless of //go:build lines, file names
// Compiler string // compiler to assume when computing target paths
-// BuildTags []string // build constraints to match in +build lines
+// BuildTags []string // build constraints to match in //go:build lines
// ToolTags []string // toolchain-specific build constraints
// ReleaseTags []string // releases the current release is compatible with
// InstallSuffix string // suffix to use in the name of the install dir