Skip to content

Commit 06e4aee

Browse files
authored
Rollup merge of rust-lang#89814 - jkugelman:must-use-string-transforms-typo, r=joshtriplett
Fix uppercase/lowercase error Fix rust-lang#89694 (comment) r? ````@joshtriplett````
2 parents c1bde6e + 81eeb3e commit 06e4aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl str {
538538
/// [`make_ascii_uppercase`]: str::make_ascii_uppercase
539539
/// [`to_uppercase`]: #method.to_uppercase
540540
#[cfg(not(no_global_oom_handling))]
541-
#[must_use = "to uppercase the value in-place, use `make_ascii_lowercase()`"]
541+
#[must_use = "to uppercase the value in-place, use `make_ascii_uppercase()`"]
542542
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
543543
#[inline]
544544
pub fn to_ascii_uppercase(&self) -> String {

0 commit comments

Comments
 (0)