Skip to content

Commit 240b27e

Browse files
author
John-Mark Allen
committed
Fix broken links
1 parent d270244 commit 240b27e

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
@@ -137,7 +137,7 @@ pub const fn identity<T>(x: T) -> T {
137137
///
138138
/// [dereferenceable types]: core::ops::Deref
139139
/// [pointed-to value]: core::ops::Deref::Target
140-
/// ['`Deref` coercion']: core::ops::Deref#more-on-deref-coercion
140+
/// ['`Deref` coercion']: core::ops::Deref#deref-coercion
141141
///
142142
/// ```
143143
/// let x = Box::new(5i32);
@@ -243,7 +243,7 @@ pub trait AsRef<T: ?Sized> {
243243
///
244244
/// [mutably dereferenceable types]: core::ops::DerefMut
245245
/// [pointed-to value]: core::ops::Deref::Target
246-
/// ['`Deref` coercion']: core::ops::DerefMut#more-on-deref-coercion
246+
/// ['`Deref` coercion']: core::ops::DerefMut#mutable-deref-coercion
247247
///
248248
/// ```
249249
/// 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)