Skip to content

Commit

Permalink
Update src/print.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
  • Loading branch information
chenyukang and Amanieu committed Jun 19, 2023
1 parent 1ad949c commit 5ad7148
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ impl<'a, 'b> BacktraceFmt<'a, 'b> {
Ok(())
}

/// Write a string to the backtrace output.
/// Inserts a message in the backtrace output.
///
/// This is only for those messages which is not part of any frame,
/// and this won't increment the `frame_index` like frame
/// This allows information to be inserted between frames,
/// and won't increment the `frame_index` unlike the `frame`
/// method.
pub fn message(&mut self, msg: &str) -> fmt::Result {
self.fmt.write_str(msg)
}
Expand Down

0 comments on commit 5ad7148

Please sign in to comment.