Skip to content

str: make replace() example more simple #21529

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

Merged
merged 1 commit into from
Jan 31, 2015
Merged

str: make replace() example more simple #21529

merged 1 commit into from
Jan 31, 2015

Conversation

tshepang
Copy link
Member

No description provided.

@rust-highfive
Copy link
Contributor

r? @pcwalton

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

@alexcrichton
Copy link
Member

r? @steveklabnik

@steveklabnik
Copy link
Member

@bors: r+ fe37da3 rollup

@steveklabnik
Copy link
Member

I'm not a fan of losing the flavor, but it is simpler.

@tshepang
Copy link
Member Author

thanks @steveklabnik; I found the original hard to read... 'twas too playful :)

flaper87 added a commit to flaper87/rust that referenced this pull request Jan 23, 2015
/// assert_eq!(s.replace("muffin man", "little lamb"),
/// "Do you know the little lamb,
/// The little lamb, the little lamb, ...".to_string());
/// assert_eq!(s.replace("old", "new"), "this is new")
Copy link
Contributor

Choose a reason for hiding this comment

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

This caused a test failure. The trailing ; is missing.

@barosl
Copy link
Contributor

barosl commented Jan 25, 2015

This should be re-r+'ed, by the way.

@alexcrichton
Copy link
Member

@bors: r+ ab5c330

@alexcrichton alexcrichton merged commit ab5c330 into rust-lang:master Jan 31, 2015
@tshepang tshepang deleted the simpler-replace-example branch January 31, 2015 16:11
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.

6 participants