mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-06 21:07:00 +00:00
Fix paste error in split_ascii_whitespace docs.
This commit is contained in:
parent
9a612b2348
commit
b27bcc0a17
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user