We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89bee9 commit 175cfbeCopy full SHA for 175cfbe
rust+wasm/{{project-name}}-wasm/src/lib.rs
@@ -29,11 +29,15 @@ pub fn set_panic_hook() {
29
console_error_panic_hook::set_once();
30
}
31
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 alerting and debugging purposes.
36
#[wasm_bindgen]
37
extern "C" {
- // For alerting
38
+ /// For alerting
39
pub(crate) fn alert(s: &str);
- // For logging in the console.
40
+ /// For logging in the console.
41
#[wasm_bindgen(js_namespace = console)]
42
pub fn log(s: &str);
43
0 commit comments