remove reference to Into in ? operator core/std docs, fix 111655
This commit is contained in:
parent
e29821ff85
commit
2eeb7693c5
@ -495,8 +495,7 @@ pub trait Into<T>: Sized {
|
|||||||
/// By converting underlying error types to our own custom error type that encapsulates the
|
/// By converting underlying error types to our own custom error type that encapsulates the
|
||||||
/// underlying error type, we can return a single error type without losing information on the
|
/// underlying error type, we can return a single error type without losing information on the
|
||||||
/// underlying cause. The '?' operator automatically converts the underlying error type to our
|
/// underlying cause. The '?' operator automatically converts the underlying error type to our
|
||||||
/// custom error type by calling `Into<CliError>::into` which is automatically provided when
|
/// custom error type with `From::from`.
|
||||||
/// implementing `From`. The compiler then infers which implementation of `Into` should be used.
|
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use std::fs;
|
/// use std::fs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user