x/tools/refactor/rename: does not rename example functions #21920
Labels
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go 1.9
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/ibc3hWTjqN
Rename a function
What did you expect to see?
https://play.golang.org/p/U0pdaBJT8j
gorename to rename the function, and to rename the example function, ExampleF.
gorename correctly renames the comment above documenting the function but does not rename the example function. After the rename, the example function is no longer visible in godoc
What did you see instead?
https://play.golang.org/p/aSKw0KKxLH
The text was updated successfully, but these errors were encountered: