Use intra-doc links
This commit is contained in:
parent
c94ed5ca91
commit
ebcb99ef8f
1 changed files with 4 additions and 8 deletions
|
@ -23,14 +23,12 @@ use super::MAX;
|
||||||
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
|
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
|
||||||
/// for a [`char`].
|
/// for a [`char`].
|
||||||
///
|
///
|
||||||
/// [`char`]: ../../std/primitive.char.html
|
/// [`char`]: crate::char
|
||||||
/// [`u32`]: ../../std/primitive.u32.html
|
/// [`u32`]: crate::u32
|
||||||
///
|
///
|
||||||
/// For an unsafe version of this function which ignores these checks, see
|
/// For an unsafe version of this function which ignores these checks, see
|
||||||
/// [`from_u32_unchecked`].
|
/// [`from_u32_unchecked`].
|
||||||
///
|
///
|
||||||
/// [`from_u32_unchecked`]: fn.from_u32_unchecked.html
|
|
||||||
///
|
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
@ -74,8 +72,8 @@ pub fn from_u32(i: u32) -> Option<char> {
|
||||||
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
|
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
|
||||||
/// [`char`], possibly creating an invalid one.
|
/// [`char`], possibly creating an invalid one.
|
||||||
///
|
///
|
||||||
/// [`char`]: ../../std/primitive.char.html
|
/// [`char`]: crate::char
|
||||||
/// [`u32`]: ../../std/primitive.u32.html
|
/// [`u32`]: crate::u32
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
@ -83,8 +81,6 @@ pub fn from_u32(i: u32) -> Option<char> {
|
||||||
///
|
///
|
||||||
/// For a safe version of this function, see the [`from_u32`] function.
|
/// For a safe version of this function, see the [`from_u32`] function.
|
||||||
///
|
///
|
||||||
/// [`from_u32`]: fn.from_u32.html
|
|
||||||
///
|
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue