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:
Mazdak Farrokhzad 2019-04-14 00:23:49 +02:00 committed by GitHub
commit 2413ac7956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2712,7 +2712,7 @@ impl str {
/// All kinds of ASCII whitespace are considered: /// 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("Mary"), iter.next());
/// assert_eq!(Some("had"), iter.next()); /// assert_eq!(Some("had"), iter.next());
/// assert_eq!(Some("a"), iter.next()); /// assert_eq!(Some("a"), iter.next());