rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Game of life - Hello Wors section - lib.rs to be similar to current wasm-pack-template #322

Open Jeroendevr opened 2 weeks ago

Jeroendevr commented 2 weeks ago

Summary

The code on the 'hello-world' section does not reflect the state of the user following the tutorial as the wasm-pack-template possibly leading to some confusing.

This PR harmonizes the documentation with the current state of the template.

Side effect is that code is this pr works with newer versions of rust/webpack