Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Sep 15, 2024
1 parent ba7c76b commit 972a3eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/flat_map_err.rs
Original file line number Diff line number Diff line change
@@ -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<T, D, E> {
fn flat_map_err<F>(self, f: F) -> Result<T, E>
where
Expand Down

0 comments on commit 972a3eb

Please sign in to comment.