diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-03-27 15:24:27 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-03-27 15:56:25 -0700 |
| commit | 8cfc93f1db2313e1565022ca090e4638bd443e0d (patch) | |
| tree | 4210a1a79690a11f443031989e570f8abcdc3bef | |
| parent | 5e9d91831a094dae187ba781f98637a902dae0c1 (diff) | |
| parent | 188299e04a0c065f7b8f536e40d0a8826b1ae833 (diff) | |
Rollup merge of #40833 - Wallacoloo:doc_to_uppercase_typo, r=steveklabnik
Fix typo in char::to_uppercase documentation Original documentation appears to have been copied from `char::to_lowercase` in a manner that made it imply that `char::to_uppercase` actually mapped unicode characters to their **lowercase** equivalent.
| -rw-r--r-- | src/libstd_unicode/char.rs | 4 |
1 files changed, 2 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. |
