Skip to content

Commit

Permalink
fix: correct file extension from .ra to .rs for utils in WASM setup d…
Browse files Browse the repository at this point in the history
…ocumentation
  • Loading branch information
katopz committed Feb 18, 2025
1 parent f75d46c commit 9720d06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/wasm/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cargo watch -i .gitignore -i "pkg/*" -s "wasm-pack test --headless --firefox"
├─ 📂 src
│ ├─ 📄 lib.rs # 👈 lib entrypoint.
│ └─ 📄 utils.ra # 👈 some utils.
│ └─ 📄 utils.rs # 👈 some utils.
├─ 📂 tests
│ └─ 📄 web.rs # 👈 test file via web.
Expand Down Expand Up @@ -114,12 +114,10 @@ extern {
#[wasm_bindgen]
pub fn greet() {
alert("Hello, hello-wasm!");
}
println!("hello world!");
}
```

│ └─ 📄 utils.ra
│ └─ 📄 utils.rs

```rust,no_run
pub fn set_panic_hook() {
Expand Down

0 comments on commit 9720d06

Please sign in to comment.