Skip to content

Commit

Permalink
Rollup merge of #40335 - tbu-:pr_doc_str_to_somecase, r=steveklabnik
Browse files Browse the repository at this point in the history
Document why `str.to_{lower,upper}case` return `String`

Fixes #39201.
  • Loading branch information
Ariel Ben-Yehuda authored Mar 8, 2017
2 parents aea8010 + f3a2f90 commit f2886e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libcollections/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,10 @@ impl str {
/// 'Lowercase' is defined according to the terms of the Unicode Derived Core Property
/// `Lowercase`.
///
/// Since some characters can expand into multiple characters when changing
/// the case, this function returns a [`String`] instead of modifying the
/// parameter in-place.
///
/// [`String`]: string/struct.String.html
///
/// # Examples
Expand Down Expand Up @@ -1718,6 +1722,10 @@ impl str {
/// 'Uppercase' is defined according to the terms of the Unicode Derived Core Property
/// `Uppercase`.
///
/// Since some characters can expand into multiple characters when changing
/// the case, this function returns a [`String`] instead of modifying the
/// parameter in-place.
///
/// [`String`]: string/struct.String.html
///
/// # Examples
Expand Down

0 comments on commit f2886e8

Please sign in to comment.