Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1182e52

Browse files
authored
Rollup merge of rust-lang#43631 - ruuda:update-docs, r=QuietMisdreavus
Point "deref coercions" links to new book Currently the link on doc.rust-lang.org is semi-broken; it links to a page that links to the exact page in the first edition in the book, or to the index of the second edition of the book. If the second editions is the recommended one now, we should point the links at that one. (In the mean time, the links have been updated to point directly to the first edition of the book, but that hasn't made it onto the stable channel yet.) By the time this commit makes it onto the stable channel, the second edition of the book should be complete enough. At least the part about deref coercions is. r? @steveklabnik
2 parents a3f0ee9 + e63d979 commit 1182e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
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
8383
//! calls to methods on [`str`] and [`[T]`][slice] respectively, via [deref
84-
//! coercions].
84+
//! coercions][deref-coercions].
8585
//!
8686
//! Third, the standard library defines [The Rust Prelude], a small collection
8787
//! of items - mostly traits - that are imported into every module of every
@@ -203,7 +203,7 @@
203203
//! [`use`]: ../book/first-edition/crates-and-modules.html#importing-modules-with-use
204204
//! [crate root]: ../book/first-edition/crates-and-modules.html#basic-terminology-crates-and-modules
205205
//! [crates.io]: https://crates.io
206-
//! [deref coercions]: ../book/first-edition/deref-coercions.html
206+
//! [deref-coercions]: ../book/second-edition/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods
207207
//! [files]: fs/struct.File.html
208208
//! [multithreading]: thread/index.html
209209
//! [other]: #what-is-in-the-standard-library-documentation

0 commit comments

Comments
 (0)