@@ -69,7 +69,7 @@ const MAX_THREE_B: u32 = 0x10000;
69
69
/// Point], but only ones within a certain range. `MAX` is the highest valid
70
70
/// code point that's a valid [Unicode Scalar Value].
71
71
///
72
- /// [`char`]: primitive.char.html
72
+ /// [`char`]: ../ primitive.char.html
73
73
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
74
74
/// [Code Point]: http://www.unicode.org/glossary/#code_point
75
75
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -91,9 +91,9 @@ pub const MAX: char = '\u{10ffff}';
91
91
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
92
92
/// for a [`char`].
93
93
///
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
97
97
///
98
98
/// For an unsafe version of this function which ignores these checks, see
99
99
/// [`from_u32_unchecked()`].
@@ -148,9 +148,9 @@ pub fn from_u32(i: u32) -> Option<char> {
148
148
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
149
149
/// [`char`], possibly creating an invalid one.
150
150
///
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
154
154
///
155
155
/// # Safety
156
156
///
@@ -414,8 +414,8 @@ pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
414
414
/// This `struct` is created by the [`escape_unicode()`] method on [`char`]. See
415
415
/// its documentation for more.
416
416
///
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
419
419
#[ derive( Clone ) ]
420
420
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
421
421
pub struct EscapeUnicode {
@@ -494,8 +494,8 @@ impl Iterator for EscapeUnicode {
494
494
/// This `struct` is created by the [`escape_default()`] method on [`char`]. See
495
495
/// its documentation for more.
496
496
///
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
499
499
#[ derive( Clone ) ]
500
500
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
501
501
pub struct EscapeDefault {
0 commit comments