Skip to content

Commit 634d48d

Browse files
committed
adjust documentation links for slice ascii case functions to use newer rustdoc link format
1 parent d29d87f commit 634d48d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/alloc/src/slice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ impl [u8] {
642642
///
643643
/// To uppercase the value in-place, use [`make_ascii_uppercase`].
644644
///
645-
/// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
645+
/// [`make_ascii_uppercase`]: slice::make_ascii_uppercase
646646
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
647647
#[inline]
648648
pub fn to_ascii_uppercase(&self) -> Vec<u8> {
@@ -659,7 +659,7 @@ impl [u8] {
659659
///
660660
/// To lowercase the value in-place, use [`make_ascii_lowercase`].
661661
///
662-
/// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
662+
/// [`make_ascii_lowercase`]: slice::make_ascii_lowercase
663663
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
664664
#[inline]
665665
pub fn to_ascii_lowercase(&self) -> Vec<u8> {

library/core/src/slice/ascii.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl [u8] {
3030
/// To return a new uppercased value without modifying the existing one, use
3131
/// [`to_ascii_uppercase`].
3232
///
33-
/// [`to_ascii_uppercase`]: #method.to_ascii_uppercase
33+
/// [`to_ascii_uppercase`]: slice::to_ascii_uppercase
3434
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
3535
#[inline]
3636
pub fn make_ascii_uppercase(&mut self) {
@@ -47,7 +47,7 @@ impl [u8] {
4747
/// To return a new lowercased value without modifying the existing one, use
4848
/// [`to_ascii_lowercase`].
4949
///
50-
/// [`to_ascii_lowercase`]: #method.to_ascii_lowercase
50+
/// [`to_ascii_lowercase`]: slice::to_ascii_lowercase
5151
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
5252
#[inline]
5353
pub fn make_ascii_lowercase(&mut self) {

0 commit comments

Comments
 (0)