Skip to content

Commit

Permalink
refactor: Update .report documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
afmireski committed Nov 19, 2024
1 parent 2d9fbe4 commit 5f074ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color-eyre/src/section/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pub trait Section: crate::private::Sealed {
///
/// if let Err(err) = do_stuff() {
/// let final_report = eyre!("Program failure with a unexpected error")
/// .with_report(|| err);
/// .report(err);
/// return Err(final_report);
/// }
///
Expand Down

0 comments on commit 5f074ef

Please sign in to comment.