Skip to content

Commit 8cfc93f

Browse files
committed
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.
2 parents 5e9d918 + 188299e commit 8cfc93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd_unicode/char.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,11 +842,11 @@ impl char {
842842
/// Returns an iterator that yields the uppercase equivalent of a `char`
843843
/// as one or more `char`s.
844844
///
845-
/// If a character does not have a uppercase equivalent, the same character
845+
/// If a character does not have an uppercase equivalent, the same character
846846
/// will be returned back by the iterator.
847847
///
848848
/// This performs complex unconditional mappings with no tailoring: it maps
849-
/// one Unicode character to its lowercase equivalent according to the
849+
/// one Unicode character to its uppercase equivalent according to the
850850
/// [Unicode database] and the additional complex mappings
851851
/// [`SpecialCasing.txt`]. Conditional mappings (based on context or
852852
/// language) are not considered here.

0 commit comments

Comments
 (0)