Back to #method for links on char

This commit is contained in:
Alexis Bourget 2020-11-19 14:55:57 +01:00
parent af40c04301
commit c0560c2755

View File

@ -112,7 +112,7 @@ pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::Into
/// For an unsafe version of this function which ignores these checks, see
/// [`from_u32_unchecked`].
///
/// [`from_u32_unchecked`]: crate::primitive::char::from_u32_unchecked()
/// [`from_u32_unchecked`]: #method.from_u32_unchecked
///
/// # Examples
///
@ -163,7 +163,7 @@ pub fn from_u32(i: u32) -> Option<char> {
///
/// For a safe version of this function, see the [`from_u32`] function.
///
/// [`from_u32`]: crate::primitive::char::from_u32()
/// [`from_u32`]: #method.from_u32
///
/// # Examples
///
@ -256,7 +256,7 @@ pub fn from_digit(num: u32, radix: u32) -> Option<char> {
///
/// For a more comprehensive understanding of 'digit', see [`is_numeric()`].
///
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
/// [`is_numeric()`]: #method.is_numeric
///
/// # Panics
///
@ -481,7 +481,7 @@ pub fn escape_debug(self) -> EscapeDebug {
/// * All other characters are given hexadecimal Unicode escapes; see
/// [`escape_unicode`].
///
/// [`escape_unicode`]: crate::primitive::char::escape_unicode()
/// [`escape_unicode`]: #method.escape_unicode
///
/// # Examples
///
@ -582,7 +582,7 @@ pub fn len_utf8(self) -> usize {
/// See the documentation for [`len_utf8()`] for more explanation of this
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
///
/// [`len_utf8()`]: crate::primitive::char::len_utf8()
/// [`len_utf8()`]: #method.len_utf8
///
/// # Examples
///
@ -797,8 +797,8 @@ pub fn is_whitespace(self) -> bool {
/// Returns `true` if this `char` satisfies either [`is_alphabetic()`] or [`is_numeric()`].
///
/// [`is_alphabetic()`]: crate::primitive::char::is_alphabetic()
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
/// [`is_alphabetic()`]: #method.is_alphabetic
/// [`is_numeric()`]: #method.is_numeric
///
/// # Examples
///
@ -1085,8 +1085,8 @@ pub const fn is_ascii(&self) -> bool {
/// assert_eq!('❤', non_ascii.to_ascii_uppercase());
/// ```
///
/// [`make_ascii_uppercase()`]: crate::primitive::char::make_ascii_uppercase()
/// [`to_uppercase()`]: crate::primitive::char::to_uppercase()
/// [`make_ascii_uppercase()`]: #method.make_ascii_uppercase
/// [`to_uppercase()`]: #method.to_uppercase
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
#[inline]
pub fn to_ascii_uppercase(&self) -> char {
@ -1113,8 +1113,8 @@ pub fn to_ascii_uppercase(&self) -> char {
/// assert_eq!('❤', non_ascii.to_ascii_lowercase());
/// ```
///
/// [`make_ascii_lowercase()`]: crate::primitive::char::make_ascii_lowercase()
/// [`to_lowercase()`]: crate::primitive::char::to_lowercase()
/// [`make_ascii_lowercase()`]: #method.make_ascii_lowercase
/// [`to_lowercase()`]: #method.to_lowercase
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
#[inline]
pub fn to_ascii_lowercase(&self) -> char {
@ -1160,7 +1160,7 @@ pub fn eq_ignore_ascii_case(&self, other: &char) -> bool {
/// assert_eq!('A', ascii);
/// ```
///
/// [`to_ascii_uppercase()`]: crate::primitive::char::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) {
@ -1185,7 +1185,7 @@ pub fn make_ascii_uppercase(&mut self) {
/// assert_eq!('a', ascii);
/// ```
///
/// [`to_ascii_lowercase()`]: crate::primitive::char::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) {