Skip to content
Myr

Capitalize stack backtrace heading

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 4e2dd07 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:src/error.rs+5 added
697 unmodified lines
698699 let backtrace = self.backtrace();700 match backtrace.status() {701 BacktraceStatus::Captured => {702 let mut backtrace = backtrace.to_string();703 if backtrace.starts_with("stack backtrace:") {704 // Capitalize to match "Caused by:"705 backtrace.replace_range(0..1, "S");706 }707 write!(f, "\n{}", backtrace)?;708 }709 BacktraceStatus::Disabled => {710 writeln!(
70 unmodified lines