]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix two formatting issues in documentation of testing flags
authorDmitri Shuralyov <shurcooL@gmail.com>
Wed, 28 Dec 2016 19:24:08 +0000 (14:24 -0500)
committerRob Pike <r@golang.org>
Wed, 28 Dec 2016 20:24:08 +0000 (20:24 +0000)
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>
src/cmd/go/alldocs.go
src/cmd/go/test.go

index bf597c03833229ccb67ab4a78eb666e4b9c52858..57716a53f8364e7cc25175d3646795750d967246 100644 (file)
 //         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.
 //         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
index e0c0d6088cbe45e1d1d67e4bcb2b8e4f9a7443e5..cdb167de75f86565b53b2ef29fce1339c4836822 100644 (file)
@@ -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