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/refactor/rename: Unterminated single quote in usage string. #12981

Closed
dmitshur opened this issue Oct 19, 2015 · 4 comments
Closed

x/tools/refactor/rename: Unterminated single quote in usage string. #12981

dmitshur opened this issue Oct 19, 2015 · 4 comments
Milestone

Comments

@dmitshur
Copy link
Member

@dmitshur dmitshur commented Oct 19, 2015

rename.go#L103 currently has:

% gorename -from \"bytes\".Buffer.Len' -to Size

It has an unterminated single quote. It should be fixed either by adding a single quote in front (and not escaping the double quotes):

% gorename -from '"bytes".Buffer.Len' -to Size

Or by removing the existing single quote:

% gorename -from \"bytes\".Buffer.Len -to Size
@dominikh
Copy link
Member

@dominikh dominikh commented Oct 19, 2015

You don't need to/must not escape the double quotes when they're enclosed in single quotes.

@dmitshur
Copy link
Member Author

@dmitshur dmitshur commented Oct 19, 2015

Thanks @dominikh, I've edited the original post to fix that.

@rakyll rakyll added this to the Unreleased milestone Oct 19, 2015
@rakyll
Copy link
Contributor

@rakyll rakyll commented Oct 19, 2015

@golang golang locked and limited conversation to collaborators Oct 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.