Skip to content

Commit d4c96de

Browse files
committed
Auto merge of #83577 - geeklint:slice_to_ascii_case_doc_links, r=m-ou-se
Adjust documentation links for slice::make_ascii_*case The documentation for the functions `slice::to_ascii_lowercase` and `slice::to_ascii_uppercase` contain the suggestion > To lowercase the value in-place, use `make_ascii_lowercase` however the link to the suggested method takes you to the page for `u8`, rather than the method of that name on the same page.
2 parents 505ed7f + 0a30c5b commit d4c96de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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`]: u8::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`]: u8::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> {

0 commit comments

Comments
 (0)