]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing: fix missing verb in StartTimer doc
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Mon, 4 Mar 2019 23:02:45 +0000 (15:02 -0800)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 4 Mar 2019 23:07:12 +0000 (23:07 +0000)
Fixes StartTimer's doc with the verb 'be'
that was previously missing in 'can also used'.

Change-Id: I4b3e6103fbf62d676056d32fcce4618536b7c05c
Reviewed-on: https://go-review.googlesource.com/c/go/+/165117
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/testing/benchmark.go

index 8dd8cbc17e267212925c1c3d875dc6a11cc80acd..24bac313d2868fe1f63e9295d1c023ea6ac9410d 100644 (file)
@@ -104,7 +104,7 @@ type B struct {
 }
 
 // StartTimer starts timing a test. This function is called automatically
-// before a benchmark starts, but it can also used to resume timing after
+// before a benchmark starts, but it can also be used to resume timing after
 // a call to StopTimer.
 func (b *B) StartTimer() {
        if !b.timerOn {