summaryrefslogtreecommitdiff
path: root/crates/wasm-testsuite/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wasm-testsuite/README.md')
-rw-r--r--crates/wasm-testsuite/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/wasm-testsuite/README.md b/crates/wasm-testsuite/README.md
index c3dcde2..51d574c 100644
--- a/crates/wasm-testsuite/README.md
+++ b/crates/wasm-testsuite/README.md
@@ -7,9 +7,9 @@ This crate embeds the latest version of the [WebAssembly Test Suite](https://git
```rust
use wasm_testsuite::{MVP_TESTS, get_test_wast};
-wasm_testsuite::MVP_TESTS.iter().for_each(|test| {
+MVP_TESTS.iter().for_each(|test| {
let wast_bytes = get_test_wast(test).expect("Failed to get wast bytes");
- let wast = std::str::from_utf8(&wast).expect("failed to convert wast to utf8");
+ let wast = std::str::from_utf8(&wast_bytes).expect("failed to convert wast to utf8");
// Do something with the wast (e.g. parse it using the `wast` crate)
});