File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,12 @@ use super::MAX;
23
23
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
24
24
/// for a [`char`].
25
25
///
26
- /// [`char`]: ../../std/primitive. char.html
27
- /// [`u32`]: ../../std/primitive. u32.html
26
+ /// [`char`]: crate:: char
27
+ /// [`u32`]: crate:: u32
28
28
///
29
29
/// For an unsafe version of this function which ignores these checks, see
30
30
/// [`from_u32_unchecked`].
31
31
///
32
- /// [`from_u32_unchecked`]: fn.from_u32_unchecked.html
33
- ///
34
32
/// # Examples
35
33
///
36
34
/// Basic usage:
@@ -74,17 +72,15 @@ pub fn from_u32(i: u32) -> Option<char> {
74
72
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
75
73
/// [`char`], possibly creating an invalid one.
76
74
///
77
- /// [`char`]: ../../std/primitive. char.html
78
- /// [`u32`]: ../../std/primitive. u32.html
75
+ /// [`char`]: crate:: char
76
+ /// [`u32`]: crate:: u32
79
77
///
80
78
/// # Safety
81
79
///
82
80
/// This function is unsafe, as it may construct invalid `char` values.
83
81
///
84
82
/// For a safe version of this function, see the [`from_u32`] function.
85
83
///
86
- /// [`from_u32`]: fn.from_u32.html
87
- ///
88
84
/// # Examples
89
85
///
90
86
/// Basic usage:
You can’t perform that action at this time.
0 commit comments