Wrong code snippet in chapter 66
https://github.com/amethyst/rustrogueliketutorial/blob/33872fe582f226178436847e1f74eafcbf9c0d1a/book/src/chapter_66.md?plain=1#L517
The code referenced here is wrong, the text mentions the _next_ line (where the reader is supposed to pass the new argument `creator` to find_item_position):
```rust
if let Some(start_pos) = targeting::find_item_position(ecs, entity, creator) {
```
0 条评论