Skip to content

Commit eaa94c5

Browse files
committed
Fix links in char docs
1 parent 1fe2a77 commit eaa94c5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/libcore/char.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const MAX_THREE_B: u32 = 0x10000;
6969
/// Point], but only ones within a certain range. `MAX` is the highest valid
7070
/// code point that's a valid [Unicode Scalar Value].
7171
///
72-
/// [`char`]: primitive.char.html
72+
/// [`char`]: ../primitive.char.html
7373
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
7474
/// [Code Point]: http://www.unicode.org/glossary/#code_point
7575
#[stable(feature = "rust1", since = "1.0.0")]
@@ -91,9 +91,9 @@ pub const MAX: char = '\u{10ffff}';
9191
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
9292
/// for a [`char`].
9393
///
94-
/// [`char`]: primitive.char.html
95-
/// [`u32`]: primitive.u32.html
96-
/// [`as`]: ../book/casting-between-types.html#as
94+
/// [`char`]: ../primitive.char.html
95+
/// [`u32`]: ../primitive.u32.html
96+
/// [`as`]: ../../book/casting-between-types.html#as
9797
///
9898
/// For an unsafe version of this function which ignores these checks, see
9999
/// [`from_u32_unchecked()`].
@@ -148,9 +148,9 @@ pub fn from_u32(i: u32) -> Option<char> {
148148
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
149149
/// [`char`], possibly creating an invalid one.
150150
///
151-
/// [`char`]: primitive.char.html
152-
/// [`u32`]: primitive.u32.html
153-
/// [`as`]: ../book/casting-between-types.html#as
151+
/// [`char`]: ../primitive.char.html
152+
/// [`u32`]: ../primitive.u32.html
153+
/// [`as`]: ../../book/casting-between-types.html#as
154154
///
155155
/// # Safety
156156
///
@@ -414,8 +414,8 @@ pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
414414
/// This `struct` is created by the [`escape_unicode()`] method on [`char`]. See
415415
/// its documentation for more.
416416
///
417-
/// [`escape_unicode()`]: primitive.char.html#method.escape_unicode
418-
/// [`char`]: primitive.char.html
417+
/// [`escape_unicode()`]: ../primitive.char.html#method.escape_unicode
418+
/// [`char`]: ../primitive.char.html
419419
#[derive(Clone)]
420420
#[stable(feature = "rust1", since = "1.0.0")]
421421
pub struct EscapeUnicode {
@@ -494,8 +494,8 @@ impl Iterator for EscapeUnicode {
494494
/// This `struct` is created by the [`escape_default()`] method on [`char`]. See
495495
/// its documentation for more.
496496
///
497-
/// [`escape_default()`]: primitive.char.html#method.escape_default
498-
/// [`char`]: primitive.char.html
497+
/// [`escape_default()`]: ../primitive.char.html#method.escape_default
498+
/// [`char`]: ../primitive.char.html
499499
#[derive(Clone)]
500500
#[stable(feature = "rust1", since = "1.0.0")]
501501
pub struct EscapeDefault {

0 commit comments

Comments
 (0)