diff options
| author | Caleb Spare <cespare@gmail.com> | 2019-03-25 13:27:34 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-03-25 22:26:21 +0000 |
| commit | a591fd08dd30de0e22e759df0fcff961fb3d32d8 (patch) | |
| tree | 49f3d07977ea8d37131d91a6960db4352cdb26b7 /src | |
| parent | e6df1799791fac7262effe4464bd5c82bbb275cb (diff) | |
| download | go-a591fd08dd30de0e22e759df0fcff961fb3d32d8.tar.xz | |
testing: correct two spelling/grammar issues
Change-Id: Ic7f7a34e12cc2845e0385a5a872e694d5dca7372
Reviewed-on: https://go-review.googlesource.com/c/go/+/169158
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/testing/benchmark.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 6dcfcb02c7..cc22bdd2b5 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -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 |
