Skip to content

Commit

Permalink
Rollup merge of rust-lang#40833 - Wallacoloo:doc_to_uppercase_typo, r…
Browse files Browse the repository at this point in the history
…=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.
  • Loading branch information
alexcrichton committed Mar 27, 2017
2 parents 5e9d918 + 188299e commit 8cfc93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd_unicode/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8cfc93f

Please sign in to comment.