about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorJohn Kugelman <john@kugelman.name>2021-10-12 08:53:54 -0400
committerJohn Kugelman <john@kugelman.name>2021-10-12 08:53:54 -0400
commit81eeb3e775128ffb70609b463faa0b554f672d2c (patch)
treeec4d272b99e5b474305a179b4c8cd8a4158f7992 /library/alloc/src
parent7cc8c44871b6e789d29fc0d42dacad9804c3a41c (diff)
downloadrust-81eeb3e775128ffb70609b463faa0b554f672d2c.tar.gz
rust-81eeb3e775128ffb70609b463faa0b554f672d2c.zip
Fix uppercase/lowercase error
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs
index ac7f2304456..e1d0ee42f4e 100644
--- a/library/alloc/src/str.rs
+++ b/library/alloc/src/str.rs
@@ -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 {