From: Dmitri Shuralyov Date: Wed, 28 Dec 2016 19:24:08 +0000 (-0500) Subject: cmd/go: fix two formatting issues in documentation of testing flags X-Git-Tag: go1.8rc1~49 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9719ca9c0e6fdda273cd178e6cce6b88d738518e;p=gostls13.git 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 --- 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