Skip to content

Commit

Permalink
Fix paste error in split_ascii_whitespace docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
solson committed Apr 12, 2019
1 parent 9a612b2 commit b27bcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
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 b27bcc0

Please sign in to comment.