Fix uppercase/lowercase error
This commit is contained in:
parent
7cc8c44871
commit
81eeb3e775
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ impl str {
|
||||||
/// [`make_ascii_uppercase`]: str::make_ascii_uppercase
|
/// [`make_ascii_uppercase`]: str::make_ascii_uppercase
|
||||||
/// [`to_uppercase`]: #method.to_uppercase
|
/// [`to_uppercase`]: #method.to_uppercase
|
||||||
#[cfg(not(no_global_oom_handling))]
|
#[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")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn to_ascii_uppercase(&self) -> String {
|
pub fn to_ascii_uppercase(&self) -> String {
|
||||||
|
|
Loading…
Reference in a new issue