Skip to content

Commit 129c559

Browse files
authored
Rollup merge of #112141 - anna-singleton:issue-111655-fix, r=thomcc
remove reference to Into in ? operator core/std docs, fix #111655 remove the text stating that `?` uses `Into::into` and add text stating it uses `From::from` instead. This closes #111655.
2 parents fe12323 + 2eeb769 commit 129c559

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)