diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-14 00:23:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-14 00:23:49 +0200 |
| commit | 2413ac7956628438fc1619ff9d3dfe6558b96a10 (patch) | |
| tree | e704f134e19be808255835a867e339c7f512638f /src/libcore | |
| parent | 8769297e97af4db3565efde540cf5f2886daf083 (diff) | |
| parent | b27bcc0a17230179d010d914e06bb90ccadca1f7 (diff) | |
| download | rust-2413ac7956628438fc1619ff9d3dfe6558b96a10.tar.gz rust-2413ac7956628438fc1619ff9d3dfe6558b96a10.zip | |
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`.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index f54d7badc3a..8d28be621d6 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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()); |
