@@ -135,8 +135,6 @@ pub const fn identity<T>(x: T) -> T {
135135/// Since both [`String`] and [`&str`] implement `AsRef<str>` we can accept both as input argument.
136136///
137137/// [`&str`]: primitive@str
138- /// [`Option<T>`]: Option
139- /// [`Result<T, E>`]: Result
140138/// [`Borrow`]: crate::borrow::Borrow
141139/// [`Eq`]: crate::cmp::Eq
142140/// [`Ord`]: crate::cmp::Ord
@@ -169,9 +167,6 @@ pub trait AsRef<T: ?Sized> {
169167/// **Note: This trait must not fail**. If the conversion can fail, use a
170168/// dedicated method which returns an [`Option<T>`] or a [`Result<T, E>`].
171169///
172- /// [`Option<T>`]: Option
173- /// [`Result<T, E>`]: Result
174- ///
175170/// # Generic Implementations
176171///
177172/// - `AsMut` auto-dereferences if the inner type is a mutable reference
@@ -270,8 +265,6 @@ pub trait AsMut<T: ?Sized> {
270265/// is_hello(s);
271266/// ```
272267///
273- /// [`Option<T>`]: Option
274- /// [`Result<T, E>`]: Result
275268/// [`String`]: ../../std/string/struct.String.html
276269/// [`Vec`]: ../../std/vec/struct.Vec.html
277270#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -359,8 +352,6 @@ pub trait Into<T>: Sized {
359352/// }
360353/// ```
361354///
362- /// [`Option<T>`]: Option
363- /// [`Result<T, E>`]: Result
364355/// [`String`]: ../../std/string/struct.String.html
365356/// [`from`]: From::from
366357/// [book]: ../../book/ch09-00-error-handling.html
0 commit comments