Skip to content

Commit 81eeb3e

Browse files
committed
Fix uppercase/lowercase error
1 parent 7cc8c44 commit 81eeb3e

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)