From 8edf9401bbcd05283368f45c43b40604264cf87c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 13 Dec 2024 15:03:55 +0100 Subject: [PATCH] reflect/protoreflect: use [] syntax to reference method While godoc does not render comments within interface definitions, using the [] syntax regardless helps with the replacement rules we use to import Go Protobuf back into Google. Change-Id: I0287ec3df5ba74261f563ce1117ab1e1be1fc270 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/635138 Reviewed-by: Cassondra Foesch LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil --- reflect/protoreflect/value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflect/protoreflect/value.go b/reflect/protoreflect/value.go index a7b0d06f..a4b78ace 100644 --- a/reflect/protoreflect/value.go +++ b/reflect/protoreflect/value.go @@ -152,7 +152,7 @@ type Message interface { // This method may return nil. // // The returned methods type is identical to - // google.golang.org/protobuf/runtime/protoiface.Methods. + // [google.golang.org/protobuf/runtime/protoiface.Methods]. // Consult the protoiface package documentation for details. ProtoMethods() *methods }