From: Russ Cox Date: Wed, 31 May 2017 15:47:33 +0000 (-0400) Subject: cmd/go: fix ugly "BUG" in go help message output X-Git-Tag: go1.9beta1~114 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6a42568701b9e35ced4bc5fccadd5569b676d972;p=gostls13.git cmd/go: fix ugly "BUG" in go help message output Change-Id: I4c579d0d02f6c9cbef1dc2bc2c93cff614538dea Reviewed-on: https://go-review.googlesource.com/44854 Run-TryBot: Russ Cox Reviewed-by: Brad Fitzpatrick Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 6a2f35d39b..3dcaf47ed1 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1436,9 +1436,10 @@ // // -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] diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index f362984d29..dc9bf379ee 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -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]