mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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
|
||||
/// 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
|
||||
/// custom error type by calling `Into<CliError>::into` which is automatically provided when
|
||||
/// implementing `From`. The compiler then infers which implementation of `Into` should be used.
|
||||
/// custom error type with `From::from`.
|
||||
///
|
||||
/// ```
|
||||
/// use std::fs;
|
||||
|
Loading…
Reference in New Issue
Block a user