File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -854,13 +854,17 @@ impl Error {
854
854
855
855
/// Attempt to downcast the custom boxed error to `E`.
856
856
///
857
- /// If this [`Error`] when this contains a custom boxed error,
857
+ /// If this [`Error`] contains a custom boxed error,
858
858
/// then it would attempt downcasting on the boxed error,
859
859
/// otherwise it will return [`Err`].
860
860
///
861
861
/// If the custom boxed error has the same type as `E`, it will return [`Ok`],
862
862
/// otherwise it will also return [`Err`].
863
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
+ ///
864
868
///
865
869
/// # Examples
866
870
///
You can’t perform that action at this time.
0 commit comments