From 0a6a28a4fb28ab14453c9ed41f9e9d696061879a Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 15 Dec 2022 00:33:36 +0000 Subject: [PATCH] fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var (#5443) * fix typo in hint about WASMTIME_BACKTRACE_DETAILS env var * Update traps.rs --- crates/wasmtime/src/trap.rs | 2 +- tests/all/traps.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasmtime/src/trap.rs b/crates/wasmtime/src/trap.rs index f16f19aedb58..41b59fe0d45b 100644 --- a/crates/wasmtime/src/trap.rs +++ b/crates/wasmtime/src/trap.rs @@ -389,7 +389,7 @@ impl fmt::Display for WasmBacktrace { } } if self.hint_wasm_backtrace_details_env { - write!(f, "\nnote: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to may show more debugging information")?; + write!(f, "\nnote: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information")?; } Ok(()) } diff --git a/tests/all/traps.rs b/tests/all/traps.rs index 0922f8442e83..a8005e1053f0 100644 --- a/tests/all/traps.rs +++ b/tests/all/traps.rs @@ -790,7 +790,7 @@ fn hint_with_dwarf_info() -> Result<()> { "\ error while executing at wasm backtrace: 0: 0x1a - !start -note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable to may show more debugging information +note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information Caused by: wasm trap: wasm `unreachable` instruction executed\