diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-05-31 13:34:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 13:34:00 +0200 |
| commit | 7b83862f10b0eb9353e350cc7dd7db715db602e6 (patch) | |
| tree | 8e0f0a52d865bd088556b862556ee351239d3789 | |
| parent | 2106d57c3560701ca69b66d7ffb77e573aa9fa9f (diff) | |
| parent | 436c9bee79d34b5d6637f87e415d90bd82029236 (diff) | |
| download | rust-7b83862f10b0eb9353e350cc7dd7db715db602e6.tar.gz rust-7b83862f10b0eb9353e350cc7dd7db715db602e6.zip | |
Rollup merge of #61359 - GuillaumeGomez:fix-deref-doc-links, r=Manishearth
Fix links in Deref documentation Fixes #61358. In commonmark, the "link alias" has to be right after the link. Screenshot: <img width="970" alt="Screenshot 2019-05-30 at 19 01 58" src="https://user-images.githubusercontent.com/3050060/58650155-3b594e00-830e-11e9-956c-4dadefa40ff0.png"> r? @Manishearth
| -rw-r--r-- | src/libcore/ops/deref.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/ops/deref.rs b/src/libcore/ops/deref.rs index e44a6c4d2a0..ce0d3fd01f7 100644 --- a/src/libcore/ops/deref.rs +++ b/src/libcore/ops/deref.rs @@ -23,9 +23,9 @@ /// * Values of type `&T` are coerced to values of type `&U` /// * `T` implicitly implements all the (immutable) methods of the type `U`. /// -/// For more details, visit [the chapter in *The Rust Programming Language*] -/// [book] as well as the reference sections on [the dereference operator] -/// [ref-deref-op], [method resolution] and [type coercions]. +/// For more details, visit [the chapter in *The Rust Programming Language*][book] +/// as well as the reference sections on [the dereference operator][ref-deref-op], +/// [method resolution] and [type coercions]. /// /// [book]: ../../book/ch15-02-deref.html /// [`DerefMut`]: trait.DerefMut.html @@ -113,9 +113,9 @@ impl<T: ?Sized> Deref for &mut T { /// * Values of type `&mut T` are coerced to values of type `&mut U` /// * `T` implicitly implements all the (mutable) methods of the type `U`. /// -/// For more details, visit [the chapter in *The Rust Programming Language*] -/// [book] as well as the reference sections on [the dereference operator] -/// [ref-deref-op], [method resolution] and [type coercions]. +/// For more details, visit [the chapter in *The Rust Programming Language*][book] +/// as well as the reference sections on [the dereference operator][ref-deref-op], +/// [method resolution] and [type coercions]. /// /// [book]: ../../book/ch15-02-deref.html /// [`Deref`]: trait.Deref.html |
