rustwasm / book

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

Prefer const to let persistently #146

Closed rhysd closed 5 years ago

rhysd commented 5 years ago

✋ A similar PR may already be submitted! Please search 🔎 among the open pull requests before creating one.

Updating the Game of Life tutorial's code? Also send a PR to rustwasm/wasm_game_of_life!

Now that you've checked, it's time to create your PR. 📝 Thanks for submitting! 🙏

For more information, see the contributing guide. 👫

Summary

Explain the motivation for making this change. What existing problem does the pull request solve? 🤔

In other JavaScript parts, const is preferred to let. So the part I fixed also should prefer const.