Skip to content

Commit

Permalink
utils/errors: Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
har7an committed Aug 19, 2022
1 parent b0d2540 commit e3bb4d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zellij-utils/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ pub trait LoggableError<T>: Sized {
///
/// ```should_panic
/// use anyhow;
/// use zellij_utils::errors::LoggableError;
///
/// Err(anyhow::anyhow!("Test error"))
/// let my_err: anyhow::Result<&str> = Err(anyhow::anyhow!("Test error"));
/// my_err
/// .print_error(|msg| println!("{msg}"))
/// .unwrap();
/// ```
Expand Down

0 comments on commit e3bb4d5

Please sign in to comment.