Skip to content

Commit 2eeb769

Browse files
remove reference to Into in ? operator core/std docs, fix 111655
1 parent e29821f commit 2eeb769

File tree

1 file changed

+1
-2
lines changed
  • library/core/src/convert

1 file changed

+1
-2
lines changed

library/core/src/convert/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,7 @@ pub trait Into<T>: Sized {
495495
/// By converting underlying error types to our own custom error type that encapsulates the
496496
/// underlying error type, we can return a single error type without losing information on the
497497
/// underlying cause. The '?' operator automatically converts the underlying error type to our
498-
/// custom error type by calling `Into<CliError>::into` which is automatically provided when
499-
/// implementing `From`. The compiler then infers which implementation of `Into` should be used.
498+
/// custom error type with `From::from`.
500499
///
501500
/// ```
502501
/// use std::fs;

0 commit comments

Comments
 (0)