Skip to content

Commit 2413ac7

Browse files
authored
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`.
2 parents 8769297 + b27bcc0 commit 2413ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,7 @@ impl str {
27122712
/// All kinds of ASCII whitespace are considered:
27132713
///
27142714
/// ```
2715-
/// let mut iter = " Mary had\ta little \n\t lamb".split_whitespace();
2715+
/// let mut iter = " Mary had\ta little \n\t lamb".split_ascii_whitespace();
27162716
/// assert_eq!(Some("Mary"), iter.next());
27172717
/// assert_eq!(Some("had"), iter.next());
27182718
/// assert_eq!(Some("a"), iter.next());

0 commit comments

Comments
 (0)