You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: no rules expected the token `"test data {}"`
--> src/lib.rs:16:6
|
10 | macro_rules! log {
| ---------------- when calling this macro
...
16 | log!("test data {}", 1);
| ^^^^^^^^^^^^^^ no rules expected this token in macro call
|
= note: while trying to match sequence start
error: could not compile `wasm-game-of-life` (lib) due to previous error
could anyone give a correct code. thanks!!
The text was updated successfully, but these errors were encountered:
From chapter 4.6 Debugging
in the lib.rs file added:
then run
wasm-pack build
it prints:could anyone give a correct code. thanks!!
The text was updated successfully, but these errors were encountered: