rustwasm / book

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

make clearer where to add web-sys as dependency in Debugging chapter #206

Closed dlqs closed 3 years ago

dlqs commented 4 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

I made the mistake of adding web-sys twice, and also adding it right in the middle of the dependencies list, just like https://github.com/rustwasm/wasm-bindgen/issues/1039.

I believe this small change makes it clearer where to add web-sys as a dependency with features.