From 0a30c5b2ab8bc367803f32933522d39df8b58c9b Mon Sep 17 00:00:00 2001 From: Violet Date: Sat, 27 Mar 2021 14:38:43 -0400 Subject: [PATCH] revert rustdoc links in core to use #method. because they link to alloc, which may not be available --- library/core/src/slice/ascii.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/slice/ascii.rs b/library/core/src/slice/ascii.rs index 4249ac77d47..42032bc9035 100644 --- a/library/core/src/slice/ascii.rs +++ b/library/core/src/slice/ascii.rs @@ -30,7 +30,7 @@ pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool { /// To return a new uppercased value without modifying the existing one, use /// [`to_ascii_uppercase`]. /// - /// [`to_ascii_uppercase`]: slice::to_ascii_uppercase + /// [`to_ascii_uppercase`]: #method.to_ascii_uppercase #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn make_ascii_uppercase(&mut self) { @@ -47,7 +47,7 @@ pub fn make_ascii_uppercase(&mut self) { /// To return a new lowercased value without modifying the existing one, use /// [`to_ascii_lowercase`]. /// - /// [`to_ascii_lowercase`]: slice::to_ascii_lowercase + /// [`to_ascii_lowercase`]: #method.to_ascii_lowercase #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] #[inline] pub fn make_ascii_lowercase(&mut self) {