Closed
Description
When associating examples with types, functions and methods (go/doc/example.go:classifyExamples), the identifier name associated with method M
of type G[T]
is G[T]_M
. Since square brackets are not allowed in Go identifiers, it isn't possible to write an example function that matches that string.
I suggest removing the square brackets, as was done in https://golang.org/cl/354689 to fix #48032.