diff options
| author | Jonathan Amsterdam <jba@google.com> | 2022-04-22 13:18:15 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2022-05-10 14:35:05 +0000 |
| commit | dd7d9b773f0c1319955eee0857e07dd411628e00 (patch) | |
| tree | ddc813eda0625f692ce9009fe0364bdeb3a305ec /src/os/exec | |
| parent | 59ef3a966b38cb2ac537d1be43f0b8fd2468ea70 (diff) | |
| download | go-dd7d9b773f0c1319955eee0857e07dd411628e00.tar.xz | |
go/doc: remove brackets from receiver in example identifier
When constructing a string for a method that will match an example
function's name, remove brackets from the receiver. This makes it
possible to write an example associated with a method of a generic
type.
Also, modify the test for classifying examples to check that all the
expected examples actually appear.
Fixes golang/go#52496.
Change-Id: Iebc5768f6cb91df9671dd701b97958fb8081f986
Reviewed-on: https://go-review.googlesource.com/c/go/+/401761
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions
