Skip to content

Commit

Permalink
Merge pull request #11 from triarius/update-comment
Browse files Browse the repository at this point in the history
Update comment
  • Loading branch information
triarius authored Sep 15, 2024
2 parents ba7c76b + 972a3eb commit 2a00760
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 2a00760

Please sign in to comment.