Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 0cef4e2

Browse files
authored
Merge pull request #179 from aaronabramov/patch-1
rename `init()` to `init_panic_hook()`
2 parents 7c09829 + 0446599 commit 0cef4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ code path:
7575

7676
```rust
7777
#[wasm_bindgen]
78-
pub fn init() {
78+
pub fn init_panic_hook() {
7979
console_error_panic_hook::set_once();
8080
}
8181
```

0 commit comments

Comments
 (0)