Fix paste error in split_ascii_whitespace docs.

This commit is contained in:
Scott Olson 2019-04-12 13:57:42 -06:00
parent 9a612b2348
commit b27bcc0a17

View file

@ -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());