Skip to content

Commit

Permalink
Rollup merge of rust-lang#59925 - solson:split_ascii_whitespace-docfi…
Browse files Browse the repository at this point in the history
…x, r=Centril

Fix paste error in split_ascii_whitespace docs.

It was accidentally still testing the unicode version, `split_whitespace`.
  • Loading branch information
Centril committed Apr 13, 2019
2 parents f76753c + b27bcc0 commit 33561e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ impl str {
/// All kinds of ASCII whitespace are considered:
///
/// ```
/// let mut iter = " Mary had\ta little \n\t lamb".split_whitespace();
/// let mut iter = " Mary had\ta little \n\t lamb".split_ascii_whitespace();
/// assert_eq!(Some("Mary"), iter.next());
/// assert_eq!(Some("had"), iter.next());
/// assert_eq!(Some("a"), iter.next());
Expand Down

0 comments on commit 33561e2

Please sign in to comment.