Skip to content

Commit 8975307

Browse files
committed
Auto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik
r? @steveklabnik
2 parents 3989f65 + eaa94c5 commit 8975307

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

src/libcollections/str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ impl str {
640640
/// Value, and may not match your idea of what a 'character' is. Iteration
641641
/// over grapheme clusters may be what you actually want.
642642
///
643-
/// [`char`]: ../primitive.char.html
643+
/// [`char`]: primitive.char.html
644644
///
645645
/// # Examples
646646
///
@@ -1551,7 +1551,7 @@ impl str {
15511551
/// The pattern can be a `&str`, [`char`], or a closure that determines
15521552
/// if a character matches.
15531553
///
1554-
/// [`char`]: primtive.char.html
1554+
/// [`char`]: primitive.char.html
15551555
///
15561556
/// # Examples
15571557
///
@@ -1643,7 +1643,7 @@ impl str {
16431643
///
16441644
/// `parse()` can parse any type that implements the [`FromStr`] trait.
16451645
///
1646-
/// [`FromStr`]: trait.FromStr.html
1646+
/// [`FromStr`]: str/trait.FromStr.html
16471647
///
16481648
/// # Failure
16491649
///

src/libcore/char.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const MAX_THREE_B: u32 = 0x10000;
6969
/// Point], but only ones within a certain range. `MAX` is the highest valid
7070
/// code point that's a valid [Unicode Scalar Value].
7171
///
72-
/// [`char`]: primitive.char.html
72+
/// [`char`]: ../primitive.char.html
7373
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
7474
/// [Code Point]: http://www.unicode.org/glossary/#code_point
7575
#[stable(feature = "rust1", since = "1.0.0")]
@@ -91,9 +91,9 @@ pub const MAX: char = '\u{10ffff}';
9191
/// [`char`]s. `from_u32()` will return `None` if the input is not a valid value
9292
/// for a [`char`].
9393
///
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
9797
///
9898
/// For an unsafe version of this function which ignores these checks, see
9999
/// [`from_u32_unchecked()`].
@@ -148,9 +148,9 @@ pub fn from_u32(i: u32) -> Option<char> {
148148
/// [`char`]s. `from_u32_unchecked()` will ignore this, and blindly cast to
149149
/// [`char`], possibly creating an invalid one.
150150
///
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
154154
///
155155
/// # Safety
156156
///
@@ -414,8 +414,8 @@ pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
414414
/// This `struct` is created by the [`escape_unicode()`] method on [`char`]. See
415415
/// its documentation for more.
416416
///
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
419419
#[derive(Clone)]
420420
#[stable(feature = "rust1", since = "1.0.0")]
421421
pub struct EscapeUnicode {
@@ -494,8 +494,8 @@ impl Iterator for EscapeUnicode {
494494
/// This `struct` is created by the [`escape_default()`] method on [`char`]. See
495495
/// its documentation for more.
496496
///
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
499499
#[derive(Clone)]
500500
#[stable(feature = "rust1", since = "1.0.0")]
501501
pub struct EscapeDefault {

src/libstd/io/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
//! to read the line and print it, so we use `()`.
238238
//!
239239
//! [result]: type.Result.html
240-
//! [try]: macro.try!.html
240+
//! [try]: ../macro.try!.html
241241
242242
#![stable(feature = "rust1", since = "1.0.0")]
243243

@@ -992,8 +992,8 @@ pub trait Write {
992992
/// explicitly be called. The [`write!`][write] macro should be favored to
993993
/// invoke this method instead.
994994
///
995-
/// [formatargs]: ../std/macro.format_args!.html
996-
/// [write]: ../std/macro.write!.html
995+
/// [formatargs]: ../macro.format_args!.html
996+
/// [write]: ../macro.write!.html
997997
///
998998
/// This function internally uses the [`write_all`][writeall] method on
999999
/// this trait and hence will continuously write data so long as no errors
@@ -1126,7 +1126,7 @@ pub trait Write {
11261126
///
11271127
/// [`File`][file]s implement `Seek`:
11281128
///
1129-
/// [file]: ../std/fs/struct.File.html
1129+
/// [file]: ../fs/struct.File.html
11301130
///
11311131
/// ```
11321132
/// use std::io;

src/libstd/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
//! `i32`](primitive.i32.html) that lists all the methods that can be called on
7777
//! 32-bit integers (very useful), and there is a [page for the module
7878
//! `std::i32`](i32/index.html) that documents the constant values [`MIN`] and
79-
//! [`MAX`] (rarely useful).
79+
//! [`MAX`](i32/constant.MAX.html) (rarely useful).
8080
//!
8181
//! Note the documentation for the primitives [`str`] and [`[T]`][slice] (also
8282
//! called 'slice'). Many method calls on [`String`] and [`Vec<T>`] are actually
@@ -153,7 +153,6 @@
153153
//!
154154
//! [I/O]: io/index.html
155155
//! [`MIN`]: i32/constant.MIN.html
156-
//! [`MAX`]: i32/constant.MAX.html
157156
//! [TCP]: net/struct.TcpStream.html
158157
//! [The Rust Prelude]: prelude/index.html
159158
//! [UDP]: net/struct.UdpSocket.html

0 commit comments

Comments
 (0)