summaryrefslogtreecommitdiff
path: root/src/cmd/go/mkdoc.sh
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-04-01 15:17:00 -0700
committerRob Pike <r@golang.org>2013-04-01 15:17:00 -0700
commitd172203aa3b1b6b6bee2ce4d823ca6ac893bc340 (patch)
tree872be934e77dce4e0abd77bdce3fe992ef0880f8 /src/cmd/go/mkdoc.sh
parent06469c8d3849e5672725f66c162d44580c6ca665 (diff)
downloadgo-d172203aa3b1b6b6bee2ce4d823ca6ac893bc340.tar.gz
testing: document that Log and Logf do not usually produce output
The text is printed only if the test fails or -test.v is set. Document this behavior in the testing package and 'go help test'. Also put a 'go install' into mkdoc.sh so I don't get tricked by the process of updating the documentation ever again. Fixes issue 5174. R=golang-dev, dsymonds CC=golang-dev https://codereview.appspot.com/8118047
Diffstat (limited to 'src/cmd/go/mkdoc.sh')
-rwxr-xr-xsrc/cmd/go/mkdoc.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/mkdoc.sh b/src/cmd/go/mkdoc.sh
index 7768baeb6..12fd7ba3e 100755
--- a/src/cmd/go/mkdoc.sh
+++ b/src/cmd/go/mkdoc.sh
@@ -3,6 +3,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+go install # So the next line will produce updated documentation.
go help documentation > doc.go
gofmt -w doc.go