diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 604e317110c..c5a2a70c4f9 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -2252,9 +2252,9 @@ pub fn eq_ignore_ascii_case(&self, other: &str) -> bool { /// but non-ASCII letters are unchanged. /// /// To return a new uppercased value without modifying the existing one, use - /// [`to_ascii_uppercase`]. + /// [`to_ascii_uppercase()`]. /// - /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase + /// [`to_ascii_uppercase()`]: prim@str::to_ascii_uppercase() /// /// # Examples /// @@ -2279,9 +2279,9 @@ pub fn make_ascii_uppercase(&mut self) { /// but non-ASCII letters are unchanged. /// /// To return a new lowercased value without modifying the existing one, use - /// [`to_ascii_lowercase`]. + /// [`to_ascii_lowercase()`]. /// - /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase + /// [`to_ascii_lowercase()`]: prim@str::to_ascii_lowercase() /// /// # Examples ///