Skip to content

Commit

Permalink
Rollup merge of rust-lang#89814 - jkugelman:must-use-string-transform…
Browse files Browse the repository at this point in the history
…s-typo, r=joshtriplett

Fix uppercase/lowercase error

Fix rust-lang#89694 (comment)

r? ``@joshtriplett``
  • Loading branch information
JohnTitor committed Oct 13, 2021
2 parents ca97aaa + 81eeb3e commit 3188128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ impl str {
/// [`make_ascii_uppercase`]: str::make_ascii_uppercase
/// [`to_uppercase`]: #method.to_uppercase
#[cfg(not(no_global_oom_handling))]
#[must_use = "to uppercase the value in-place, use `make_ascii_lowercase()`"]
#[must_use = "to uppercase the value in-place, use `make_ascii_uppercase()`"]
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
#[inline]
pub fn to_ascii_uppercase(&self) -> String {
Expand Down

0 comments on commit 3188128

Please sign in to comment.