From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 9 Mar 2024 04:09:45 +0000 (+0000) Subject: time: fix typo in BenchmarkReset X-Git-Tag: go1.23rc1~923 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ec4baaca390ac884c1f55fa1171d2b1eac571b0a;p=gostls13.git time: fix typo in BenchmarkReset 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 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui --- diff --git a/src/time/sleep_test.go b/src/time/sleep_test.go index 3339799f1d..7bad49f413 100644 --- a/src/time/sleep_test.go +++ b/src/time/sleep_test.go @@ -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++ {