about summary refs log tree commit diff
diff options
context:
space:
mode:
authoranna-singleton <annabeths111@gmail.com>2023-05-31 15:51:28 +0100
committeranna-singleton <annabeths111@gmail.com>2023-05-31 15:51:28 +0100
commit2eeb7693c5cb2e324458094bc8e923489a318953 (patch)
tree1ac1d88a746298897674906b2220d8e3c4605e81
parente29821ff85a2a3000d226f99f62f89464028d5d6 (diff)
downloadrust-2eeb7693c5cb2e324458094bc8e923489a318953.tar.gz
rust-2eeb7693c5cb2e324458094bc8e923489a318953.zip
remove reference to Into in ? operator core/std docs, fix 111655
-rw-r--r--library/core/src/convert/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index 38a6d1ccdb5..799085e9a83 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -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;