Skip to content

Commit 7b83862

Browse files
authored
Rollup merge of rust-lang#61359 - GuillaumeGomez:fix-deref-doc-links, r=Manishearth
Fix links in Deref documentation Fixes rust-lang#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
2 parents 2106d57 + 436c9be commit 7b83862

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/ops/deref.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
/// * Values of type `&T` are coerced to values of type `&U`
2424
/// * `T` implicitly implements all the (immutable) methods of the type `U`.
2525
///
26-
/// For more details, visit [the chapter in *The Rust Programming Language*]
27-
/// [book] as well as the reference sections on [the dereference operator]
28-
/// [ref-deref-op], [method resolution] and [type coercions].
26+
/// For more details, visit [the chapter in *The Rust Programming Language*][book]
27+
/// as well as the reference sections on [the dereference operator][ref-deref-op],
28+
/// [method resolution] and [type coercions].
2929
///
3030
/// [book]: ../../book/ch15-02-deref.html
3131
/// [`DerefMut`]: trait.DerefMut.html
@@ -113,9 +113,9 @@ impl<T: ?Sized> Deref for &mut T {
113113
/// * Values of type `&mut T` are coerced to values of type `&mut U`
114114
/// * `T` implicitly implements all the (mutable) methods of the type `U`.
115115
///
116-
/// For more details, visit [the chapter in *The Rust Programming Language*]
117-
/// [book] as well as the reference sections on [the dereference operator]
118-
/// [ref-deref-op], [method resolution] and [type coercions].
116+
/// For more details, visit [the chapter in *The Rust Programming Language*][book]
117+
/// as well as the reference sections on [the dereference operator][ref-deref-op],
118+
/// [method resolution] and [type coercions].
119119
///
120120
/// [book]: ../../book/ch15-02-deref.html
121121
/// [`Deref`]: trait.Deref.html

0 commit comments

Comments
 (0)