aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2019-07-03 10:22:28 -0400
committerJay Conrod <jayconrod@google.com>2019-07-03 14:55:39 +0000
commitb412fde53a6b53475e25aaa9e49f3c6df3c48716 (patch)
treeebf9ab576ec0efe0071541d45d24b15fb4a07637 /src
parent1c1e517005786daeca0e77f2be6769e9b8e1f5a5 (diff)
downloadgo-b412fde53a6b53475e25aaa9e49f3c6df3c48716.tar.xz
go/build: document characters allowed in build tags
The documentation just said "alphanumeric", but underscores and dots are also accepted. Fixes #32886 Change-Id: I1ba872a220d5c5bf64f1d851ddba9eb3b1afb89a Reviewed-on: https://go-review.googlesource.com/c/go/+/184917 Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/go/build/doc.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/go/build/doc.go b/src/go/build/doc.go
index 703825a45d..de793efa87 100644
--- a/src/go/build/doc.go
+++ b/src/go/build/doc.go
@@ -70,10 +70,11 @@
// To distinguish build constraints from package documentation, a series of
// build constraints must be followed by a blank line.
//
-// A build constraint is evaluated as the OR of space-separated options;
-// each option evaluates as the AND of its comma-separated terms;
-// and each term is an alphanumeric word or, preceded by !, its negation.
-// That is, the build constraint:
+// A build constraint is evaluated as the OR of space-separated options.
+// Each option evaluates as the AND of its comma-separated terms.
+// Each term consists of letters, digits, underscores, and dots.
+// A term may be negated with a preceding !.
+// For example, the build constraint:
//
// // +build linux,386 darwin,!cgo
//