]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/go/internal/help: update the documentation to match the design and implementation
authorQuan Tong <quantonganh@gmail.com>
Mon, 16 Oct 2023 08:39:48 +0000 (15:39 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 30 Oct 2023 18:16:15 +0000 (18:16 +0000)
The existing documentation imply that the build constraints
should be ignored after a block comments, but actually it's not.

Fixes #63502

Change-Id: I0597934b7a7eeab8908bf06e1312169b3702bf05
Reviewed-on: https://go-review.googlesource.com/c/go/+/535635
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Mark Pictor <mark.pictor@contrastsecurity.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index 392a21148bf2cfab10e41cd85d4059ae70da1c03..a5148ad48639c1aedc8777138d6c3cc26b238ea3 100644 (file)
 //
 // Constraints may appear in any kind of source file (not just Go), but
 // they must appear near the top of the file, preceded
-// only by blank lines and other line comments. These rules mean that in Go
+// only by blank lines and other comments. These rules mean that in Go
 // files a build constraint must appear before the package clause.
 //
 // To distinguish build constraints from package documentation,
index 68ac4d229daeae3e41c66f864a5cee191e579450..93613ac65e7c51eaec8b78e00aa972bef95df6f3 100644 (file)
@@ -829,7 +829,7 @@ line comment that begins
 
 Constraints may appear in any kind of source file (not just Go), but
 they must appear near the top of the file, preceded
-only by blank lines and other line comments. These rules mean that in Go
+only by blank lines and other comments. These rules mean that in Go
 files a build constraint must appear before the package clause.
 
 To distinguish build constraints from package documentation,