Skip to content

Commit

Permalink
Auto merge of #83577 - geeklint:slice_to_ascii_case_doc_links, r=m-ou-se
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Mar 28, 2021
2 parents 505ed7f + 0a30c5b commit d4c96de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ impl [u8] {
///
/// To uppercase the value in-place, use [`make_ascii_uppercase`].
///
/// [`make_ascii_uppercase`]: u8::make_ascii_uppercase
/// [`make_ascii_uppercase`]: slice::make_ascii_uppercase
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
#[inline]
pub fn to_ascii_uppercase(&self) -> Vec<u8> {
Expand All @@ -659,7 +659,7 @@ impl [u8] {
///
/// To lowercase the value in-place, use [`make_ascii_lowercase`].
///
/// [`make_ascii_lowercase`]: u8::make_ascii_lowercase
/// [`make_ascii_lowercase`]: slice::make_ascii_lowercase
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
#[inline]
pub fn to_ascii_lowercase(&self) -> Vec<u8> {
Expand Down

0 comments on commit d4c96de

Please sign in to comment.