Skip to content

Commit ceda93e

Browse files
cristiangrecogopherbot
authored andcommitted
build/constraint: update doc to mention a feature added in Go 1.17
The pkg documentation mentions that the "//go:build" syntax "will be" added in Go 1.17. In fact, it has been added in that Go release, so the documentation can now be updated. Change-Id: I72f24063c3be62d97ca78bf724d56599f5f19460 GitHub-Last-Rev: 4371886 GitHub-Pull-Request: #53647 Reviewed-on: https://go-review.googlesource.com/c/go/+/415774 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent 3cf79d9 commit ceda93e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/go/build/constraint/expr.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
// Package constraint implements parsing and evaluation of build constraint lines.
66
// See https://golang.org/cmd/go/#hdr-Build_constraints for documentation about build constraints themselves.
77
//
8-
// This package parses both the original “// +build” syntax and the “//go:build” syntax that will be added in Go 1.17.
9-
// The parser is being included in Go 1.16 to allow tools that need to process Go 1.17 source code
10-
// to still be built against the Go 1.16 release.
8+
// This package parses both the original “// +build” syntax and the “//go:build” syntax that was added in Go 1.17.
119
// See https://golang.org/design/draft-gobuild for details about the “//go:build” syntax.
1210
package constraint
1311

0 commit comments

Comments
 (0)