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

Add multi-line string literals to TRPL #29617

Merged
merged 1 commit into from
Nov 7, 2015
Merged

Conversation

steveklabnik
Copy link
Member

Fixes #29591

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

assert_eq!("foo\n bar", s);
```

The second, with a `\`, does not:
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps this could go into a little more detail about what's going on here? It basically just means the newline and any leading whitespace on the next line is trimmed, but may be more clear if called out explicitly.

@alexcrichton
Copy link
Member

Just one minor comment, but r=me either way

@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton rollup

@bors
Copy link
Contributor

bors commented Nov 6, 2015

📌 Commit 586eb3d has been approved by alexcrichton

Manishearth added a commit to Manishearth/rust that referenced this pull request Nov 7, 2015
bors added a commit that referenced this pull request Nov 7, 2015
@bors bors merged commit 586eb3d into rust-lang:master Nov 7, 2015
@steveklabnik steveklabnik deleted the gh29591 branch June 19, 2016 20:31
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.

5 participants