Skip to content

Fix bad copypasta for patterns doc in std::str #28607

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
Sep 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions src/libcollections/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ impl str {
/// Returns `None` if it doesn't exist.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines the
/// split.
/// determines if a character matches.
///
/// # Examples
///
Expand Down Expand Up @@ -760,7 +759,7 @@ impl str {
/// Returns `None` if it doesn't exist.
///
/// The pattern can be a simple `&str`, `char`,
/// or a closure that determines the split.
/// or a closure that determines if a character matches.
///
/// # Examples
///
Expand Down Expand Up @@ -1096,7 +1095,7 @@ impl str {
/// An iterator over the matches of a pattern within `self`.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines the split.
/// determines if a character matches.
/// Additional libraries might provide more complex patterns like
/// regular expressions.
///
Expand Down Expand Up @@ -1129,7 +1128,7 @@ impl str {
/// reverse order.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines the split.
/// determines if a character matches.
/// Additional libraries might provide more complex patterns like
/// regular expressions.
///
Expand Down Expand Up @@ -1166,8 +1165,7 @@ impl str {
/// match are returned.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines
/// the split.
/// determines if a character matches.
/// Additional libraries might provide more complex patterns like
/// regular expressions.
///
Expand Down Expand Up @@ -1214,8 +1212,7 @@ impl str {
/// match are returned.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines
/// the split.
/// determines if a character matches.
/// Additional libraries might provide more complex patterns like
/// regular expressions.
///
Expand Down Expand Up @@ -1296,7 +1293,7 @@ impl str {
/// repeatedly removed.
///
/// The pattern can be a simple `char`, or a closure that determines
/// the split.
/// if a character matches.
///
/// # Examples
///
Expand Down Expand Up @@ -1326,7 +1323,7 @@ impl str {
/// repeatedly removed.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines the split.
/// determines if a character matches.
///
/// # Examples
///
Expand All @@ -1346,7 +1343,7 @@ impl str {
/// repeatedly removed.
///
/// The pattern can be a simple `&str`, `char`, or a closure that
/// determines the split.
/// determines if a character matches.
///
/// # Examples
///
Expand Down