]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix typo in docs
authorShenghou Ma <minux.ma@gmail.com>
Tue, 2 Apr 2013 19:34:04 +0000 (03:34 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 2 Apr 2013 19:34:04 +0000 (03:34 +0800)
Fixes #5181.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8277043

src/cmd/go/doc.go
src/cmd/go/test.go

index 498365f83806c0cba08d4a076957b585189410a8..6ffcf9ab6c05b72279617a845f1d1fcaab91ca65 100644 (file)
@@ -708,17 +708,18 @@ control the execution of any test:
            Print memory allocation statistics for benchmarks.
 
        -benchtime t
-               Run enough iterations of each benchmark to take t, specified
-               as a time.Duration (for example, -benchtime 1h30s).
-               The default is 1 second (1s).
+           Run enough iterations of each benchmark to take t, specified
+           as a time.Duration (for example, -benchtime 1h30s).
+           The default is 1 second (1s).
 
        -blockprofile block.out
            Write a goroutine blocking profile to the specified file
            when all tests are complete.
 
        -blockprofilerate n
-           Control the detail provided in goroutine blocking profiles by setting
-           runtime.BlockProfileRate to n.  See 'godoc runtime BlockProfileRate'.
+           Control the detail provided in goroutine blocking profiles by
+           calling runtime.SetBlockProfileRate with n.
+           See 'godoc runtime SetBlockProfileRate'.
            The profiler aims to sample, on average, one blocking event every
            n nanoseconds the program spends blocked.  By default,
            if -test.blockprofile is set without this flag, all blocking events
@@ -760,7 +761,7 @@ control the execution of any test:
            exhaustive tests.
 
        -timeout t
-               If a test runs longer than t, panic.
+           If a test runs longer than t, panic.
 
        -v
            Verbose output: log all tests as they are run. Also print all
index 56046a8c712214b9bcc052e08f2fd740705c5216..58ebcc0717d0f392025a3bd9e9cc7378910cd721 100644 (file)
@@ -98,17 +98,18 @@ control the execution of any test:
            Print memory allocation statistics for benchmarks.
 
        -benchtime t
-               Run enough iterations of each benchmark to take t, specified
-               as a time.Duration (for example, -benchtime 1h30s).
-               The default is 1 second (1s).
+           Run enough iterations of each benchmark to take t, specified
+           as a time.Duration (for example, -benchtime 1h30s).
+           The default is 1 second (1s).
 
        -blockprofile block.out
            Write a goroutine blocking profile to the specified file
            when all tests are complete.
 
        -blockprofilerate n
-           Control the detail provided in goroutine blocking profiles by setting
-           runtime.BlockProfileRate to n.  See 'godoc runtime BlockProfileRate'.
+           Control the detail provided in goroutine blocking profiles by
+           calling runtime.SetBlockProfileRate with n.
+           See 'godoc runtime SetBlockProfileRate'.
            The profiler aims to sample, on average, one blocking event every
            n nanoseconds the program spends blocked.  By default,
            if -test.blockprofile is set without this flag, all blocking events
@@ -150,7 +151,7 @@ control the execution of any test:
            exhaustive tests.
 
        -timeout t
-               If a test runs longer than t, panic.
+           If a test runs longer than t, panic.
 
        -v
            Verbose output: log all tests as they are run. Also print all