Skip to content

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented Mar 17, 2015

No description provided.

@rust-highfive
Copy link
Contributor

r? @gankro

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

@@ -923,11 +923,12 @@ pub trait StrExt: Index<RangeFull, Output = str> {

/// Returns a string with all pre- and suffixes that match a pattern repeatedly removed.
///
/// The pattern can be a simple `&str`, or a closure that determines the split.
/// The pattern is required to be a `DoubleEndedSearcher`, therefore `&str` patterns cannot
/// be used.
Copy link
Contributor

Choose a reason for hiding this comment

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

This lost the 'closure' aspect. I would change this to read:

The pattern can be any DoubleEndedSearcher, including a closure that determines the split.

This keeps it overall more consistent with the rest of the other examples.

@steveklabnik
Copy link
Contributor

r=me after the little nit

@Ryman Ryman force-pushed the trim_matches_doc branch from 571151a to 34c48db Compare March 17, 2015 20:37
@Ryman
Copy link
Contributor Author

Ryman commented Mar 17, 2015

@steveklabnik updated.

@steveklabnik
Copy link
Contributor

Thanks so much!

@steveklabnik
Copy link
Contributor

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Mar 17, 2015

📌 Commit 34c48db has been approved by steveklabnik

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 18, 2015
@bors bors merged commit 34c48db into rust-lang:master Mar 18, 2015
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