summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vasilik <contact@denisvasilik.com>2020-08-15 01:12:47 +0200
committerDenis Vasilik <contact@denisvasilik.com>2020-08-15 01:12:47 +0200
commitebcb99ef8f50087e18b7cb652acd02d037e457a3 (patch)
tree855b487177011ccb17c821f7f2924dd728c0aef7
parentc94ed5ca91f1363b66970ce2cbd6e2773e3cb1d3 (diff)
downloadrust-ebcb99ef8f50087e18b7cb652acd02d037e457a3.tar.gz
Use intra-doc links
-rw-r--r--library/core/src/char/convert.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/library/core/src/char/convert.rs b/library/core/src/char/convert.rs
index c329eec76ac..1043e0e0c21 100644
--- a/library/core/src/char/convert.rs
+++ b/library/core/src/char/convert.rs
@@ -23,14 +23,12 @@ use super::MAX;
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
/// for a [`char`].
///
-/// [`char`]: ../../std/primitive.char.html
-/// [`u32`]: ../../std/primitive.u32.html
+/// [`char`]: crate::char
+/// [`u32`]: crate::u32
///
/// For an unsafe version of this function which ignores these checks, see
/// [`from_u32_unchecked`].
///
-/// [`from_u32_unchecked`]: fn.from_u32_unchecked.html
-///
/// # Examples
///
/// 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`], possibly creating an invalid one.
///
-/// [`char`]: ../../std/primitive.char.html
-/// [`u32`]: ../../std/primitive.u32.html
+/// [`char`]: crate::char
+/// [`u32`]: crate::u32
///
/// # 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.
///
-/// [`from_u32`]: fn.from_u32.html
-///
/// # Examples
///
/// Basic usage: