From 81eeb3e775128ffb70609b463faa0b554f672d2c Mon Sep 17 00:00:00 2001 From: John Kugelman Date: Tue, 12 Oct 2021 08:53:54 -0400 Subject: [PATCH] Fix uppercase/lowercase error --- library/alloc/src/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index ac7f230445656..e1d0ee42f4e90 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 {