Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Sep 16, 2024
1 parent fdd81d5 commit a7b6c31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ pub fn greet(name: &str) -> String {
pub fn log(msg: &str) {
console::log_1(&msg.into());
}

#[wasm_bindgen]
pub fn add(a: i32, b: i32) -> i32 {
a + b
}

0 comments on commit a7b6c31

Please sign in to comment.