Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Feb 5, 2025
1 parent 2628618 commit 6187ef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ where

/// Similar to [consume_input] function, but flattens result (only retaining first error
/// in the vector)
/// # Errors
///
/// If the input is invalid
pub fn consume_input_or_err<F, T, E>(input: &Vec<String>, f: F) -> Result<Vec<T>, E>
where
F: Fn(Box<dyn Read + '_>) -> Result<T, E>,
Expand Down

0 comments on commit 6187ef2

Please sign in to comment.