diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-04-03 04:58:48 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-04-03 05:07:49 -0700 |
| commit | 8f31e191c6caa1986276f2dda207135a255ee1f6 (patch) | |
| tree | 7a926e472ee5cbc67f0aba7d4b8428bc8ca2163b /src/libstd_unicode | |
| parent | c963d613a2275d5c9b31cd7124dda2f2af61deb6 (diff) | |
| parent | 5e122f59ba23494d460466cca53c71646d99c767 (diff) | |
| download | rust-8f31e191c6caa1986276f2dda207135a255ee1f6.tar.gz rust-8f31e191c6caa1986276f2dda207135a255ee1f6.zip | |
Merge branch 'master' into issue-40006
Diffstat (limited to 'src/libstd_unicode')
| -rw-r--r-- | src/libstd_unicode/char.rs | 4 | ||||
| -rw-r--r-- | src/libstd_unicode/u_str.rs | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index b980300126e..92e5369758b 100644 --- a/src/libstd_unicode/char.rs +++ b/src/libstd_unicode/char.rs @@ -842,11 +842,11 @@ impl char { /// Returns an iterator that yields the uppercase equivalent of a `char` /// as one or more `char`s. /// - /// If a character does not have a uppercase equivalent, the same character + /// If a character does not have an uppercase equivalent, the same character /// will be returned back by the iterator. /// /// This performs complex unconditional mappings with no tailoring: it maps - /// one Unicode character to its lowercase equivalent according to the + /// one Unicode character to its uppercase equivalent according to the /// [Unicode database] and the additional complex mappings /// [`SpecialCasing.txt`]. Conditional mappings (based on context or /// language) are not considered here. diff --git a/src/libstd_unicode/u_str.rs b/src/libstd_unicode/u_str.rs index 3c02ea82d2a..770b67acd49 100644 --- a/src/libstd_unicode/u_str.rs +++ b/src/libstd_unicode/u_str.rs @@ -19,6 +19,12 @@ use core::str::Split; /// An iterator over the non-whitespace substrings of a string, /// separated by any amount of whitespace. +/// +/// This struct is created by the [`split_whitespace`] method on [`str`]. +/// See its documentation for more. +/// +/// [`split_whitespace`]: ../../std/primitive.str.html#method.split_whitespace +/// [`str`]: ../../std/primitive.str.html #[stable(feature = "split_whitespace", since = "1.1.0")] pub struct SplitWhitespace<'a> { inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>, |
