Skip to content

Commit 30cea86

Browse files
John-Mark Allenjmaargh
John-Mark Allen
authored andcommitted
Fix broken links
1 parent 77a24bd commit 30cea86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/core/src/convert/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub const fn identity<T>(x: T) -> T {
138138
///
139139
/// [dereferenceable types]: core::ops::Deref
140140
/// [pointed-to value]: core::ops::Deref::Target
141-
/// ['`Deref` coercion']: core::ops::Deref#more-on-deref-coercion
141+
/// ['`Deref` coercion']: core::ops::Deref#deref-coercion
142142
///
143143
/// ```
144144
/// let x = Box::new(5i32);
@@ -244,7 +244,7 @@ pub trait AsRef<T: ?Sized> {
244244
///
245245
/// [mutably dereferenceable types]: core::ops::DerefMut
246246
/// [pointed-to value]: core::ops::Deref::Target
247-
/// ['`Deref` coercion']: core::ops::DerefMut#more-on-deref-coercion
247+
/// ['`Deref` coercion']: core::ops::DerefMut#mutable-deref-coercion
248248
///
249249
/// ```
250250
/// let mut x = Box::new(5i32);

library/core/src/ops/deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl<T: ?Sized> Deref for &mut T {
207207
///
208208
/// [book]: ../../book/ch15-02-deref.html
209209
/// [coercion]: #mutable-deref-coercion
210-
/// [implementing]: trait.Deref.html#when-to-implement-deref-or-derefmut
210+
/// [implementing]: Deref#when-to-implement-deref-or-derefmut
211211
/// [ref-deref-op]: ../../reference/expressions/operator-expr.html#the-dereference-operator
212212
/// [method resolution]: ../../reference/expressions/method-call-expr.html
213213
/// [type coercions]: ../../reference/type-coercions.html

0 commit comments

Comments
 (0)