]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix typo in BenchmarkReset
authorqiulaidongfeng <2645477756@qq.com>
Sat, 9 Mar 2024 04:09:45 +0000 (04:09 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 11 Mar 2024 17:11:35 +0000 (17:11 +0000)
Change-Id: I1dbd1c5aa26f458cdac7a3f0ca974254a069311f
GitHub-Last-Rev: da481ba7a9082a5fae5cc7c72821167d9879f54f
GitHub-Pull-Request: golang/go#66219
Reviewed-on: https://go-review.googlesource.com/c/go/+/569897
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/time/sleep_test.go

index 3339799f1d591dcdf6b85783adebea34d0ae40f3..7bad49f41324bb776cabdc58476c8a0c1a6efd51 100644 (file)
@@ -259,7 +259,7 @@ func BenchmarkReset(b *testing.B) {
                        t.Stop()
                })
        })
-       b.Run("impl=chan", func(b *testing.B) {
+       b.Run("impl=func", func(b *testing.B) {
                benchmark(b, func(n int) {
                        t := newTimerFunc(Hour)
                        for i := 0; i < n; i++ {