From 972a3ebd78864203bb5a943b93c50906b199d87f Mon Sep 17 00:00:00 2001 From: Narthana Epa Date: Mon, 16 Sep 2024 06:53:14 +1000 Subject: [PATCH] Update comment --- src/flat_map_err.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/flat_map_err.rs b/src/flat_map_err.rs index f924b4f..3576b10 100644 --- a/src/flat_map_err.rs +++ b/src/flat_map_err.rs @@ -1,9 +1,8 @@ /// A trait for `Result` that allows chaining a function that returns a `Result` to the error type. /// /// # Examples -/// One use case is if the ok type, `T` has a default value, and the error type, `E` may take -/// multiple values that may be ignored, then this trait can be used to map the error type to the -/// default value of `T` for the errors that can be ignored. +/// If the Ok type, `T` has a default value, and the error type, `E` has some ignorable values, then +/// this trait can be used to map the ignorabl error type values to the default value of `T`. pub(crate) trait FlatMapErr { fn flat_map_err(self, f: F) -> Result where