Rollup merge of #59925 - solson:split_ascii_whitespace-docfix, r=Centril
Fix paste error in split_ascii_whitespace docs. It was accidentally still testing the unicode version, `split_whitespace`.
This commit is contained in:
commit
2413ac7956
@ -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