Hands-on Rust: no map in scope on check for end of turn

Title: Hands-on Rust: no map in scope on check for end of turn (page 278)

When I made the changes to end_turn.rs, the map was not in scope.

I fixed it by adding , #[resource] map: &Map to the fn declaration.
(So, maybe another of those details, we can assume the reader knows how to solve by now)

1 Like