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

Small fixes #1082

Merged
merged 4 commits into from
Jul 10, 2016
Merged

Small fixes #1082

merged 4 commits into from
Jul 10, 2016

Conversation

mcarton
Copy link
Member

@mcarton mcarton commented Jul 10, 2016

Fix #1075.
Fix point 2 of rustfix's Gotchas.
Fix another issue I can't find the #id of.

span,
"try this",
&format!(
"impl Default for {} {{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC you can indent strings and it works. But this is okay too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you indent the string, all of the indentation is included except if you use \ and then none of the indentation is included:

    "
    foo
    bar
        baz" == "\n    foo\n    bar\n        baz";

"\
foo\
    bar\
        baz" == "foobarbaz"

@Manishearth Manishearth merged commit 1f7d7d7 into master Jul 10, 2016
@mcarton mcarton deleted the small-fixes branch July 10, 2016 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggest the | for match_same_arms
2 participants