]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix ugly "BUG" in go help message output
authorRuss Cox <rsc@golang.org>
Wed, 31 May 2017 15:47:33 +0000 (11:47 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 5 Jun 2017 19:55:31 +0000 (19:55 +0000)
Change-Id: I4c579d0d02f6c9cbef1dc2bc2c93cff614538dea
Reviewed-on: https://go-review.googlesource.com/44854
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index 6a2f35d39bb2dfb9ef3318f38d1854ed7f5ebac6..3dcaf47ed14ec204e39f9f668a226a365e74ecaa 100644 (file)
 //
 //     -cover
 //         Enable coverage analysis.
-//
-//         BUG: If a compilation or test fails with coverage enabled,
-//         the reported line numbers may be incorrect.
+//         Note that because coverage works by annotating the source
+//         code before compilation, compilation and test failures with
+//         coverage enabled may report line numbers that don't correspond
+//         to the original sources.
 //
 //     -covermode set,count,atomic
 //         Set the mode for coverage analysis for the package[s]
index f362984d2933af5b9aa9a7288f88149584ea17c0..dc9bf379ee4065a856d022c5f0a3f8ef9228e353 100644 (file)
@@ -161,9 +161,10 @@ const testFlag2 = `
 
        -cover
            Enable coverage analysis.
-
-           BUG: If a compilation or test fails with coverage enabled,
-           the reported line numbers may be incorrect.
+           Note that because coverage works by annotating the source
+           code before compilation, compilation and test failures with
+           coverage enabled may report line numbers that don't correspond
+           to the original sources.
 
        -covermode set,count,atomic
            Set the mode for coverage analysis for the package[s]