diff --git a/src/game-of-life/hello-world.md b/src/game-of-life/hello-world.md index 6f59daf1..0c5df14f 100644 --- a/src/game-of-life/hello-world.md +++ b/src/game-of-life/hello-world.md @@ -65,20 +65,14 @@ mod utils; use wasm_bindgen::prelude::*; -// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global -// allocator. -#[cfg(feature = "wee_alloc")] -#[global_allocator] -static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; - #[wasm_bindgen] -extern { +extern "C" { fn alert(s: &str); } #[wasm_bindgen] pub fn greet() { - alert("Hello, wasm-game-of-life!"); + alert("Hello, {{project-name}}!"); } ```