]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing: correct two spelling/grammar issues
authorCaleb Spare <cespare@gmail.com>
Mon, 25 Mar 2019 20:27:34 +0000 (13:27 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 25 Mar 2019 22:26:21 +0000 (22:26 +0000)
Change-Id: Ic7f7a34e12cc2845e0385a5a872e694d5dca7372
Reviewed-on: https://go-review.googlesource.com/c/go/+/169158
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/testing/benchmark.go

index 6dcfcb02c74843c04a6262b77015f062dff40ba9..cc22bdd2b5fec591a761f83c5df4db537bc1c1a2 100644 (file)
@@ -135,7 +135,7 @@ func (b *B) StopTimer() {
        }
 }
 
-// ResetTimer zeros the elapsed benchmark time and memory allocation counters
+// ResetTimer zeroes the elapsed benchmark time and memory allocation counters
 // and deletes user-reported metrics.
 // It does not affect whether the timer is running.
 func (b *B) ResetTimer() {
@@ -752,7 +752,7 @@ func (b *B) SetParallelism(p int) {
        }
 }
 
-// Benchmark benchmarks a single function. Useful for creating
+// Benchmark benchmarks a single function. It is useful for creating
 // custom benchmarks that do not use the "go test" command.
 //
 // If f calls Run, the result will be an estimate of running all its