Skip to content

Commit 81deee2

Browse files
committed
docs: Document alert and log functions
1 parent c89bee9 commit 81deee2

File tree

1 file changed

+4
-0
lines changed
  • rust+wasm/{{project-name}}-wasm/src

1 file changed

+4
-0
lines changed

rust+wasm/{{project-name}}-wasm/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ pub fn set_panic_hook() {
2929
console_error_panic_hook::set_once();
3030
}
3131

32+
/// External functions for alerting and logging to the console.
33+
///
34+
/// This block defines the interface to functions that can be called
35+
/// from the WebAssembly module for alterting and debugging purposes.
3236
#[wasm_bindgen]
3337
extern "C" {
3438
// For alerting

0 commit comments

Comments
 (0)