Remove accidental debugging code added to example

This commit is contained in:
Alex Crichton 2020-06-05 07:24:46 -07:00
parent 9c5a6dfff6
commit 3725e7157d

View File

@ -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
}
}