Browse Source

Merge pull request #3 from mgedmin/patch-2

Typo in Chapter 7
Herbert "TheBracket 4 years ago
parent
commit
b772fce032
1 changed files with 2 additions and 2 deletions
  1. 2 2
      book/src/chapter_7.md

+ 2 - 2
book/src/chapter_7.md

@@ -724,7 +724,7 @@ fn tick(&mut self, ctx : &mut Rltk) {
 
 Notice how we now have a state machine going, with a "pre-run" phase for starting the game! It's much cleaner, and quite obvious what's going on. There's a bit of scope magic in use to keep the borrow-checker happy: if you declare and use a variable inside a scope, it is dropped on scope exit (you can also manually drop things, but I think this is cleaner looking).
 
-In `player.rs` we simply replace all `Paued` with `AwaitingInput`, and `Running` with `PlayerTurn`.
+In `player.rs` we simply replace all `Paused` with `AwaitingInput`, and `Running` with `PlayerTurn`.
 
 Lastly, we modify `monster_ai_system` to only run if the state is `MonsterTurn` (snippet):
 
@@ -759,4 +759,4 @@ That was quite the chapter! We added in location indexing, damage, and killing t
 
 Copyright (C) 2019, Herbert Wolverson.
 
----
+---