@@ -213,7 +213,7 @@ pub trait AsMut<T: ?Sized> {
213
213
///
214
214
/// # Generic Implementations
215
215
///
216
- /// - [`From<T> `]` for U` implies `Into<U> for T`
216
+ /// - [`From`]`<T> for U` implies `Into<U> for T`
217
217
/// - [`Into`]` is reflexive, which means that `Into<T> for T` is implemented
218
218
///
219
219
/// # Implementing `Into` for conversions to external types
@@ -273,7 +273,7 @@ pub trait AsMut<T: ?Sized> {
273
273
/// [`Option<T>`]: ../../std/option/enum.Option.html
274
274
/// [`Result<T, E>`]: ../../std/result/enum.Result.html
275
275
/// [`String`]: ../../std/string/struct.String.html
276
- /// [From]: trait.From.html
276
+ /// [` From` ]: trait.From.html
277
277
/// [`into`]: trait.Into.html#tymethod.into
278
278
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
279
279
pub trait Into < T > : Sized {
@@ -285,18 +285,18 @@ pub trait Into<T>: Sized {
285
285
/// Used to do value-to-value conversions while consuming the input value. It is the reciprocal of
286
286
/// [`Into`].
287
287
///
288
- /// One should always prefer implementing [ `From`] over [`Into`]
289
- /// because implementing [ `From`] automatically provides one with a implementation of [`Into`]
288
+ /// One should always prefer implementing `From` over [`Into`]
289
+ /// because implementing `From` automatically provides one with a implementation of [`Into`]
290
290
/// thanks to the blanket implementation in the standard library.
291
291
///
292
292
/// Only implement [`Into`] if a conversion to a type outside the current crate is required.
293
- /// [ `From`] cannot do these type of conversions because of Rust's orphaning rules.
293
+ /// `From` cannot do these type of conversions because of Rust's orphaning rules.
294
294
/// See [`Into`] for more details.
295
295
///
296
- /// Prefer using [`Into`] over using [ `From`] when specifying trait bounds on a generic function.
296
+ /// Prefer using [`Into`] over using `From` when specifying trait bounds on a generic function.
297
297
/// This way, types that directly implement [`Into`] can be used as arguments as well.
298
298
///
299
- /// The [ `From`] is also very useful when performing error handling. When constructing a function
299
+ /// The `From` is also very useful when performing error handling. When constructing a function
300
300
/// that is capable of failing, the return type will generally be of the form `Result<T, E>`.
301
301
/// The `From` trait simplifies error handling by allowing a function to return a single error type
302
302
/// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more
@@ -306,8 +306,8 @@ pub trait Into<T>: Sized {
306
306
///
307
307
/// # Generic Implementations
308
308
///
309
- /// - [ `From<T>`]` for U` implies [`Into<U> `]` for T`
310
- /// - [ `From`] is reflexive, which means that `From<T> for T` is implemented
309
+ /// - `From<T>` for U` implies [`Into`]`<U> for T`
310
+ /// - `From` is reflexive, which means that `From<T> for T` is implemented
311
311
///
312
312
/// # Examples
313
313
///
@@ -361,7 +361,7 @@ pub trait Into<T>: Sized {
361
361
/// [`Option<T>`]: ../../std/option/enum.Option.html
362
362
/// [`Result<T, E>`]: ../../std/result/enum.Result.html
363
363
/// [`String`]: ../../std/string/struct.String.html
364
- /// [`Into<U> `]: trait.Into.html
364
+ /// [`Into`]: trait.Into.html
365
365
/// [`from`]: trait.From.html#tymethod.from
366
366
/// [book]: ../../book/ch09-00-error-handling.html
367
367
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -422,7 +422,7 @@ pub trait TryInto<T>: Sized {
422
422
///
423
423
/// # Generic Implementations
424
424
///
425
- /// - `TryFrom<T> for U` implies [`TryInto<U> `]` for T`
425
+ /// - `TryFrom<T> for U` implies [`TryInto`]`<U> for T`
426
426
/// - [`try_from`] is reflexive, which means that `TryFrom<T> for T`
427
427
/// is implemented and cannot fail -- the associated `Error` type for
428
428
/// calling `T::try_from()` on a value of type `T` is `Infallible`.
0 commit comments