Skip to content

Commit 3aa7c5e

Browse files
kolyshkinadonovan
authored andcommitted
testing: fix reference to B.N in docstring
Currently, a documentation reference to a struct member (such as [B.N]) does not result in it being rendered as a link, and thus the square brackets remain in the rendered documentation which is mildly confusing. The issue can be seen at https://pkg.go.dev/testing@master#hdr-b_N_style_benchmarks Remove the square brackets to fix. Change-Id: Id374fd2085bd511018220c5d663650f89672302e Reviewed-on: https://go-review.googlesource.com/c/go/+/643496 Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
1 parent 3f4164f commit 3aa7c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/testing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
// # b.N-style benchmarks
121121
//
122122
// Prior to the introduction of [B.Loop], benchmarks were written in a
123-
// different style using [B.N]. For example:
123+
// different style using B.N. For example:
124124
//
125125
// func BenchmarkRandInt(b *testing.B) {
126126
// for range b.N {

0 commit comments

Comments
 (0)