mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 09:40:52 +00:00
Remove accidental debugging code added to example
This commit is contained in:
parent
9c5a6dfff6
commit
3725e7157d
@ -4,21 +4,3 @@ use wasm_bindgen::prelude::*;
|
||||
pub fn add(a: u32, b: u32) -> u32 {
|
||||
a + b
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct Answer(u32);
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl Answer {
|
||||
pub fn new() -> Answer {
|
||||
Answer(41)
|
||||
}
|
||||
#[wasm_bindgen(getter)]
|
||||
pub fn the_answer(self) -> u32 {
|
||||
self.0 + 1
|
||||
}
|
||||
pub fn foo(self) -> u32 {
|
||||
self.0 + 1
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user