We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fea2cd commit 46ba3f2Copy full SHA for 46ba3f2
std/src/io/error.rs
@@ -854,13 +854,17 @@ impl Error {
854
855
/// Attempt to downcast the custom boxed error to `E`.
856
///
857
- /// If this [`Error`] when this contains a custom boxed error,
+ /// If this [`Error`] contains a custom boxed error,
858
/// then it would attempt downcasting on the boxed error,
859
/// otherwise it will return [`Err`].
860
861
/// If the custom boxed error has the same type as `E`, it will return [`Ok`],
862
/// otherwise it will also return [`Err`].
863
864
+ /// This method is meant to be a convenience routine for calling
865
+ /// `Box<dyn Error + Sync + Send>::downcast` on the custom boxed error, returned by
866
+ /// [`Error::into_inner`].
867
+ ///
868
869
/// # Examples
870
0 commit comments