Skip to content

Commit 5ad7148

Browse files
chenyukangAmanieu
andauthored
Update src/print.rs
Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent 1ad949c commit 5ad7148

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/print.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ impl<'a, 'b> BacktraceFmt<'a, 'b> {
8787
Ok(())
8888
}
8989

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

0 commit comments

Comments
 (0)