Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/gorename: doesn't update comments #14881

Closed
sprt opened this issue Mar 19, 2016 · 1 comment
Closed

x/tools/cmd/gorename: doesn't update comments #14881

sprt opened this issue Mar 19, 2016 · 1 comment

Comments

@sprt
Copy link

sprt commented Mar 19, 2016

Let foo.go be:

package main

// Foo does nothing.
func Foo() {}

Running gorename -offset foo.go:#40 -to Bar does update the function definition, but not the comment, as such:

package main

// Foo does nothing.
func Bar() {}

This would be the desired output:

package main

// Bar does nothing.
func Bar() {}
@dominikh
Copy link
Member

Duplicate of #13000

@golang golang locked and limited conversation to collaborators Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants