From acbcc21d08357b6c1618e1503b50ab4a38591d5c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 29 Aug 2024 10:40:25 -0500 Subject: [PATCH] Update CLI flag documentation for wmemcheck (#9183) Closes #9181 --- docs/wmemcheck.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/wmemcheck.md b/docs/wmemcheck.md index 76d731f2cc..6869fa04a9 100644 --- a/docs/wmemcheck.md +++ b/docs/wmemcheck.md @@ -10,8 +10,8 @@ How to use: 1. When building Wasmtime, add the CLI flag "--features wmemcheck" to compile with wmemcheck configured. > cargo build --features wmemcheck -2. When running your wasm module, add the CLI flag "--wmemcheck". - > wasmtime run --wmemcheck test.wasm +2. When running your wasm module, add the CLI flag "-W wmemcheck". + > wasmtime run -W wmemcheck test.wasm If your program executes an invalid operation (load or store to non-allocated address, double-free, or an internal error in malloc that allocates the same @@ -37,7 +37,7 @@ $ /opt/wasi-sdk/bin/clang -o test.wasm test.c you can observe the memory checker working like so: ```plain -$ wasmtime run --wmemcheck ./test.wasm +$ wasmtime run -W wmemcheck ./test.wasm Error: failed to run main module `./test.wasm` Caused by: