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.
This commit is contained in:
commit
d4c96de64f
1 changed files with 2 additions and 2 deletions
|
@ -642,7 +642,7 @@ impl [u8] {
|
||||||
///
|
///
|
||||||
/// To uppercase the value in-place, use [`make_ascii_uppercase`].
|
/// 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")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn to_ascii_uppercase(&self) -> Vec<u8> {
|
pub fn to_ascii_uppercase(&self) -> Vec<u8> {
|
||||||
|
@ -659,7 +659,7 @@ impl [u8] {
|
||||||
///
|
///
|
||||||
/// To lowercase the value in-place, use [`make_ascii_lowercase`].
|
/// 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")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn to_ascii_lowercase(&self) -> Vec<u8> {
|
pub fn to_ascii_lowercase(&self) -> Vec<u8> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue