Skip to content

Commit b701d32

Browse files
committed
Remove broken links to self in Into documentation
1 parent 6bf94cd commit b701d32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/convert.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ pub trait AsMut<T: ?Sized> {
203203
/// A value-to-value conversion that consumes the input value. The
204204
/// opposite of [`From`].
205205
///
206-
/// One should only implement [`Into`] if a conversion to a type outside the current crate is
207-
/// required. Otherwise one should always prefer implementing [`From`] over [`Into`] because
208-
/// implementing [`From`] automatically provides one with a implementation of [`Into`] thanks to
206+
/// One should only implement `Into` if a conversion to a type outside the current crate is
207+
/// required. Otherwise one should always prefer implementing [`From`] over `Into` because
208+
/// implementing [`From`] automatically provides one with a implementation of `Into` thanks to
209209
/// the blanket implementation in the standard library. [`From`] cannot do these type of
210210
/// conversions because of Rust's orphaning rules.
211211
///
@@ -214,7 +214,7 @@ pub trait AsMut<T: ?Sized> {
214214
/// # Generic Implementations
215215
///
216216
/// - [`From`]`<T> for U` implies `Into<U> for T`
217-
/// - [`Into`] is reflexive, which means that `Into<T> for T` is implemented
217+
/// - `Into` is reflexive, which means that `Into<T> for T` is implemented
218218
///
219219
/// # Implementing `Into` for conversions to external types
220220
///

0 commit comments

Comments
 (0)