remove example

This commit is contained in:
Max Bradbury 2020-07-03 15:15:04 +01:00
parent f32e3a24f2
commit 184d2fe572
1 changed files with 0 additions and 18 deletions

View File

@ -1,24 +1,6 @@
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
use bitsy_parser::game::Game; use bitsy_parser::game::Game;
// Called when the wasm module is instantiated
#[wasm_bindgen(start)]
pub fn main() -> Result<(), JsValue> {
// Use `web_sys`'s global `window` function to get a handle on the global
// window object.
let window = web_sys::window().expect("no global `window` exists");
let document = window.document().expect("should have a document on window");
let body = document.body().expect("document should have a body");
// Manufacture the element we're gonna append
let val = document.create_element("p")?;
val.set_inner_html("Hello from Rust!");
body.append_child(&val)?;
Ok(())
}
#[wasm_bindgen] #[wasm_bindgen]
pub fn merge(a: String, b: String) -> String { pub fn merge(a: String, b: String) -> String {
let main = Game::from(a); let main = Game::from(a);