From 3aa7c5ef01e147fb482f4b3e79c6f875a4b1b9fb Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 20 Jan 2025 17:38:26 -0800 Subject: [PATCH] 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 Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Alan Donovan --- src/testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/testing.go b/src/testing/testing.go index be6391b0ab15ce..3833bfc84be49f 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -120,7 +120,7 @@ // # b.N-style benchmarks // // Prior to the introduction of [B.Loop], benchmarks were written in a -// different style using [B.N]. For example: +// different style using B.N. For example: // // func BenchmarkRandInt(b *testing.B) { // for range b.N {