aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Shuralyov <shurcooL@gmail.com>2016-12-28 14:24:08 -0500
committerRob Pike <r@golang.org>2016-12-28 20:24:08 +0000
commit9719ca9c0e6fdda273cd178e6cce6b88d738518e (patch)
tree786d588f1d1d904f6bb42d24714ea9eb309a2fe1
parent5bfba30d3325d87ef89dd877f05e5d1e2d618bc3 (diff)
downloadgo-9719ca9c0e6fdda273cd178e6cce6b88d738518e.tar.gz
go-9719ca9c0e6fdda273cd178e6cce6b88d738518e.zip
cmd/go: fix two formatting issues in documentation of testing flags
Remove unneeded second colon. Remove unneeded space at the beginning of a line (before a tab). Regenerate alldocs.go with mkalldocs.sh. Updates https://golang.org/cl/28783. Updates https://golang.org/cl/29650. Fixes #18448. Change-Id: I1830136a2b760827d4cec565744807a0fd147584 Reviewed-on: https://go-review.googlesource.com/34718 Reviewed-by: Rob Pike <r@golang.org>
-rw-r--r--src/cmd/go/alldocs.go4
-rw-r--r--src/cmd/go/test.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index bf597c0383..57716a53f8 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -1474,7 +1474,7 @@
// text from Log and Logf calls even if the test succeeds.
//
// The following flags are also recognized by 'go test' and can be used to
-// profile the tests during execution::
+// profile the tests during execution:
//
// -benchmem
// Print memory allocation statistics for benchmarks.
@@ -1517,7 +1517,7 @@
// Writes test binary as -c would.
//
// -mutexprofilefraction n
-// Sample 1 in n stack traces of goroutines holding a
+// Sample 1 in n stack traces of goroutines holding a
// contended mutex.
//
// -outputdir directory
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go
index e0c0d6088c..cdb167de75 100644
--- a/src/cmd/go/test.go
+++ b/src/cmd/go/test.go
@@ -200,7 +200,7 @@ const testFlag2 = `
text from Log and Logf calls even if the test succeeds.
The following flags are also recognized by 'go test' and can be used to
-profile the tests during execution::
+profile the tests during execution:
-benchmem
Print memory allocation statistics for benchmarks.
@@ -243,7 +243,7 @@ profile the tests during execution::
Writes test binary as -c would.
-mutexprofilefraction n
- Sample 1 in n stack traces of goroutines holding a
+ Sample 1 in n stack traces of goroutines holding a
contended mutex.
-outputdir directory