@@ -135,8 +135,6 @@ pub const fn identity<T>(x: T) -> T {
135
135
/// Since both [`String`] and [`&str`] implement `AsRef<str>` we can accept both as input argument.
136
136
///
137
137
/// [`&str`]: primitive@str
138
- /// [`Option<T>`]: Option
139
- /// [`Result<T, E>`]: Result
140
138
/// [`Borrow`]: crate::borrow::Borrow
141
139
/// [`Eq`]: crate::cmp::Eq
142
140
/// [`Ord`]: crate::cmp::Ord
@@ -169,9 +167,6 @@ pub trait AsRef<T: ?Sized> {
169
167
/// **Note: This trait must not fail**. If the conversion can fail, use a
170
168
/// dedicated method which returns an [`Option<T>`] or a [`Result<T, E>`].
171
169
///
172
- /// [`Option<T>`]: Option
173
- /// [`Result<T, E>`]: Result
174
- ///
175
170
/// # Generic Implementations
176
171
///
177
172
/// - `AsMut` auto-dereferences if the inner type is a mutable reference
@@ -270,8 +265,6 @@ pub trait AsMut<T: ?Sized> {
270
265
/// is_hello(s);
271
266
/// ```
272
267
///
273
- /// [`Option<T>`]: Option
274
- /// [`Result<T, E>`]: Result
275
268
/// [`String`]: ../../std/string/struct.String.html
276
269
/// [`Vec`]: ../../std/vec/struct.Vec.html
277
270
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -359,8 +352,6 @@ pub trait Into<T>: Sized {
359
352
/// }
360
353
/// ```
361
354
///
362
- /// [`Option<T>`]: Option
363
- /// [`Result<T, E>`]: Result
364
355
/// [`String`]: ../../std/string/struct.String.html
365
356
/// [`from`]: From::from
366
357
/// [book]: ../../book/ch09-00-error-handling.html
0 commit comments