Skip to content

Commit c0560c2

Browse files
committed
Back to #method for links on char
1 parent af40c04 commit c0560c2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

library/core/src/char/methods.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl char {
112112
/// For an unsafe version of this function which ignores these checks, see
113113
/// [`from_u32_unchecked`].
114114
///
115-
/// [`from_u32_unchecked`]: crate::primitive::char::from_u32_unchecked()
115+
/// [`from_u32_unchecked`]: #method.from_u32_unchecked
116116
///
117117
/// # Examples
118118
///
@@ -163,7 +163,7 @@ impl char {
163163
///
164164
/// For a safe version of this function, see the [`from_u32`] function.
165165
///
166-
/// [`from_u32`]: crate::primitive::char::from_u32()
166+
/// [`from_u32`]: #method.from_u32
167167
///
168168
/// # Examples
169169
///
@@ -256,7 +256,7 @@ impl char {
256256
///
257257
/// For a more comprehensive understanding of 'digit', see [`is_numeric()`].
258258
///
259-
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
259+
/// [`is_numeric()`]: #method.is_numeric
260260
///
261261
/// # Panics
262262
///
@@ -481,7 +481,7 @@ impl char {
481481
/// * All other characters are given hexadecimal Unicode escapes; see
482482
/// [`escape_unicode`].
483483
///
484-
/// [`escape_unicode`]: crate::primitive::char::escape_unicode()
484+
/// [`escape_unicode`]: #method.escape_unicode
485485
///
486486
/// # Examples
487487
///
@@ -582,7 +582,7 @@ impl char {
582582
/// See the documentation for [`len_utf8()`] for more explanation of this
583583
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
584584
///
585-
/// [`len_utf8()`]: crate::primitive::char::len_utf8()
585+
/// [`len_utf8()`]: #method.len_utf8
586586
///
587587
/// # Examples
588588
///
@@ -797,8 +797,8 @@ impl char {
797797

798798
/// Returns `true` if this `char` satisfies either [`is_alphabetic()`] or [`is_numeric()`].
799799
///
800-
/// [`is_alphabetic()`]: crate::primitive::char::is_alphabetic()
801-
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
800+
/// [`is_alphabetic()`]: #method.is_alphabetic
801+
/// [`is_numeric()`]: #method.is_numeric
802802
///
803803
/// # Examples
804804
///
@@ -1085,8 +1085,8 @@ impl char {
10851085
/// assert_eq!('❤', non_ascii.to_ascii_uppercase());
10861086
/// ```
10871087
///
1088-
/// [`make_ascii_uppercase()`]: crate::primitive::char::make_ascii_uppercase()
1089-
/// [`to_uppercase()`]: crate::primitive::char::to_uppercase()
1088+
/// [`make_ascii_uppercase()`]: #method.make_ascii_uppercase
1089+
/// [`to_uppercase()`]: #method.to_uppercase
10901090
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
10911091
#[inline]
10921092
pub fn to_ascii_uppercase(&self) -> char {
@@ -1113,8 +1113,8 @@ impl char {
11131113
/// assert_eq!('❤', non_ascii.to_ascii_lowercase());
11141114
/// ```
11151115
///
1116-
/// [`make_ascii_lowercase()`]: crate::primitive::char::make_ascii_lowercase()
1117-
/// [`to_lowercase()`]: crate::primitive::char::to_lowercase()
1116+
/// [`make_ascii_lowercase()`]: #method.make_ascii_lowercase
1117+
/// [`to_lowercase()`]: #method.to_lowercase
11181118
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
11191119
#[inline]
11201120
pub fn to_ascii_lowercase(&self) -> char {
@@ -1160,7 +1160,7 @@ impl char {
11601160
/// assert_eq!('A', ascii);
11611161
/// ```
11621162
///
1163-
/// [`to_ascii_uppercase()`]: crate::primitive::char::to_ascii_uppercase()
1163+
/// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase
11641164
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
11651165
#[inline]
11661166
pub fn make_ascii_uppercase(&mut self) {
@@ -1185,7 +1185,7 @@ impl char {
11851185
/// assert_eq!('a', ascii);
11861186
/// ```
11871187
///
1188-
/// [`to_ascii_lowercase()`]: crate::primitive::char::to_ascii_lowercase()
1188+
/// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase
11891189
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
11901190
#[inline]
11911191
pub fn make_ascii_lowercase(&mut self) {

0 commit comments

Comments
 (0)