Skip to content

Commit a89cece

Browse files
committed
docs: Fix some 'second-edition' links
1 parent ae167c9 commit a89cece

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/libcore/ops/deref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/// [book] as well as the reference sections on [the dereference operator]
2828
/// [ref-deref-op], [method resolution] and [type coercions].
2929
///
30-
/// [book]: ../../book/second-edition/ch15-02-deref.html
30+
/// [book]: ../../book/ch15-02-deref.html
3131
/// [`DerefMut`]: trait.DerefMut.html
3232
/// [more]: #more-on-deref-coercion
3333
/// [ref-deref-op]: ../../reference/expressions/operator-expr.html#the-dereference-operator
@@ -117,7 +117,7 @@ impl<T: ?Sized> Deref for &mut T {
117117
/// [book] as well as the reference sections on [the dereference operator]
118118
/// [ref-deref-op], [method resolution] and [type coercions].
119119
///
120-
/// [book]: ../../book/second-edition/ch15-02-deref.html
120+
/// [book]: ../../book/ch15-02-deref.html
121121
/// [`Deref`]: trait.Deref.html
122122
/// [more]: #more-on-deref-coercion
123123
/// [ref-deref-op]: ../../reference/expressions/operator-expr.html#the-dereference-operator

src/libcore/ops/function.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/// `Fn(usize, bool) -> usize`). Those interested in the technical details of
2828
/// this can refer to [the relevant section in the *Rustonomicon*][nomicon].
2929
///
30-
/// [book]: ../../book/second-edition/ch13-01-closures.html
30+
/// [book]: ../../book/ch13-01-closures.html
3131
/// [`FnMut`]: trait.FnMut.html
3232
/// [`FnOnce`]: trait.FnOnce.html
3333
/// [function pointers]: ../../std/primitive.fn.html
@@ -95,7 +95,7 @@ pub trait Fn<Args> : FnMut<Args> {
9595
/// `Fn(usize, bool) -> usize`). Those interested in the technical details of
9696
/// this can refer to [the relevant section in the *Rustonomicon*][nomicon].
9797
///
98-
/// [book]: ../../book/second-edition/ch13-01-closures.html
98+
/// [book]: ../../book/ch13-01-closures.html
9999
/// [`Fn`]: trait.Fn.html
100100
/// [`FnOnce`]: trait.FnOnce.html
101101
/// [function pointers]: ../../std/primitive.fn.html
@@ -173,7 +173,7 @@ pub trait FnMut<Args> : FnOnce<Args> {
173173
/// `Fn(usize, bool) -> usize`). Those interested in the technical details of
174174
/// this can refer to [the relevant section in the *Rustonomicon*][nomicon].
175175
///
176-
/// [book]: ../../book/second-edition/ch13-01-closures.html
176+
/// [book]: ../../book/ch13-01-closures.html
177177
/// [`Fn`]: trait.Fn.html
178178
/// [`FnMut`]: trait.FnMut.html
179179
/// [function pointers]: ../../std/primitive.fn.html

src/libstd/keyword_docs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ mod crate_keyword { }
169169
///
170170
/// [Algebraic Data Types]: https://en.wikipedia.org/wiki/Algebraic_data_type
171171
/// [`Option`]: option/enum.Option.html
172-
/// [Rust Book]: https://doc.rust-lang.org/book/second-edition/ch06-01-defining-an-enum.html
172+
/// [Rust Book]: https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html
173173
/// [Reference]: https://doc.rust-lang.org/reference/items/enumerations.html
174174
mod enum_keyword { }
175175

@@ -211,7 +211,7 @@ mod enum_keyword { }
211211
/// For more information on FFI, check the [Rust book] or the [Reference].
212212
///
213213
/// [Rust book]:
214-
/// https://doc.rust-lang.org/book/second-edition/ch19-01-unsafe-rust.html#using-extern-functions-to-call-external-code
214+
/// https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html#using-extern-functions-to-call-external-code
215215
/// [Reference]: https://doc.rust-lang.org/reference/items/external-blocks.html
216216
mod extern_keyword { }
217217

@@ -278,7 +278,7 @@ mod extern_keyword { }
278278
///
279279
/// [`impl`]: keyword.impl.html
280280
/// [`extern`]: keyword.extern.html
281-
/// [Rust book]: https://doc.rust-lang.org/book/second-edition/ch03-03-how-functions-work.html
281+
/// [Rust book]: https://doc.rust-lang.org/book/ch03-03-how-functions-work.html
282282
/// [Reference]: https://doc.rust-lang.org/reference/items/functions.html
283283
mod fn_keyword { }
284284

@@ -705,6 +705,6 @@ mod loop_keyword { }
705705
/// [Reference][reference].
706706
///
707707
/// [`PhantomData`]: marker/struct.PhantomData.html
708-
/// [book]: https://doc.rust-lang.org/book/second-edition/ch05-01-defining-structs.html
708+
/// [book]: https://doc.rust-lang.org/book/ch05-01-defining-structs.html
709709
/// [reference]: https://doc.rust-lang.org/reference/items/structs.html
710710
mod struct_keyword { }

src/libstd/primitive_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ mod prim_usize { }
923923
/// For more information on how to use references, see [the book's section on "References and
924924
/// Borrowing"][book-refs].
925925
///
926-
/// [book-refs]: ../book/second-edition/ch04-02-references-and-borrowing.html
926+
/// [book-refs]: ../book/ch04-02-references-and-borrowing.html
927927
///
928928
/// # Trait implementations
929929
///

0 commit comments

Comments
 (0)