Wasn't sure where your gitbook source is, but in the "Introduction page", there're two typos: "lib.rs" should be "main.rs", and in run_fn, the "world" variable is underscored when it is needed, while the "rng" variable is not underscored but should be.
Wasn't sure where your gitbook source is, but in the "Introduction page", there're two typos: "lib.rs" should be "main.rs", and in
run_fn
, the "world" variable is underscored when it is needed, while the "rng" variable is not underscored but should be.Old
Put the following in your
lib.rs
:New
Put the following in your
main.rs
: