Skip to content

Commit ebcb99e

Browse files
committed
Use intra-doc links
1 parent c94ed5c commit ebcb99e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

library/core/src/char/convert.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ use super::MAX;
2323
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
2424
/// for a [`char`].
2525
///
26-
/// [`char`]: ../../std/primitive.char.html
27-
/// [`u32`]: ../../std/primitive.u32.html
26+
/// [`char`]: crate::char
27+
/// [`u32`]: crate::u32
2828
///
2929
/// For an unsafe version of this function which ignores these checks, see
3030
/// [`from_u32_unchecked`].
3131
///
32-
/// [`from_u32_unchecked`]: fn.from_u32_unchecked.html
33-
///
3432
/// # Examples
3533
///
3634
/// Basic usage:
@@ -74,17 +72,15 @@ pub fn from_u32(i: u32) -> Option<char> {
7472
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
7573
/// [`char`], possibly creating an invalid one.
7674
///
77-
/// [`char`]: ../../std/primitive.char.html
78-
/// [`u32`]: ../../std/primitive.u32.html
75+
/// [`char`]: crate::char
76+
/// [`u32`]: crate::u32
7977
///
8078
/// # Safety
8179
///
8280
/// This function is unsafe, as it may construct invalid `char` values.
8381
///
8482
/// For a safe version of this function, see the [`from_u32`] function.
8583
///
86-
/// [`from_u32`]: fn.from_u32.html
87-
///
8884
/// # Examples
8985
///
9086
/// Basic usage:

0 commit comments

Comments
 (0)