-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document why str.to_{lower,upper}case
return String
#40335
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
CC @Havvy |
src/libcollections/str.rs
Outdated
@@ -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 when changing the case, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say "multiple characters" instead of "multiple".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
src/libcollections/str.rs
Outdated
@@ -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 when changing the case, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise here.
45cf255
to
f3a2f90
Compare
@bors: r+ rollup thanks! |
📌 Commit f3a2f90 has been approved by |
…eklabnik Document why `str.to_{lower,upper}case` return `String` Fixes rust-lang#39201.
…eklabnik Document why `str.to_{lower,upper}case` return `String` Fixes rust-lang#39201.
…eklabnik Document why `str.to_{lower,upper}case` return `String` Fixes rust-lang#39201.
Fixes #39201.