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

Fix documentation for StrExt::trim_matches #23455

Merged
merged 1 commit into from
Mar 18, 2015

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented Mar 17, 2015

No description provided.

@rust-highfive
Copy link
Collaborator

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
Member

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
Member

r=me after the little nit

@Ryman
Copy link
Contributor Author

Ryman commented Mar 17, 2015

@steveklabnik updated.

@steveklabnik
Copy link
Member

Thanks so much!

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

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