From 2eeb7693c5cb2e324458094bc8e923489a318953 Mon Sep 17 00:00:00 2001 From: anna-singleton Date: Wed, 31 May 2023 15:51:28 +0100 Subject: [PATCH] remove reference to Into in ? operator core/std docs, fix 111655 --- library/core/src/convert/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 38a6d1ccdb552..799085e9a8307 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -495,8 +495,7 @@ pub trait Into: 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::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;