remove reference to Into in ? operator core/std docs, fix 111655

This commit is contained in:
anna-singleton 2023-05-31 15:51:28 +01:00
parent e29821ff85
commit 2eeb7693c5

View File

@ -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;