Skip to content

Commit a591fd0

Browse files
cesparebradfitz
authored andcommitted
testing: correct two spelling/grammar issues
Change-Id: Ic7f7a34e12cc2845e0385a5a872e694d5dca7372 Reviewed-on: https://go-review.googlesource.com/c/go/+/169158 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent e6df179 commit a591fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testing/benchmark.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (b *B) StopTimer() {
135135
}
136136
}
137137

138-
// ResetTimer zeros the elapsed benchmark time and memory allocation counters
138+
// ResetTimer zeroes the elapsed benchmark time and memory allocation counters
139139
// and deletes user-reported metrics.
140140
// It does not affect whether the timer is running.
141141
func (b *B) ResetTimer() {
@@ -752,7 +752,7 @@ func (b *B) SetParallelism(p int) {
752752
}
753753
}
754754

755-
// Benchmark benchmarks a single function. Useful for creating
755+
// Benchmark benchmarks a single function. It is useful for creating
756756
// custom benchmarks that do not use the "go test" command.
757757
//
758758
// If f calls Run, the result will be an estimate of running all its

0 commit comments

Comments
 (0)