Skip to content

Commit

Permalink
Fixed markdown style
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Aug 4, 2024
1 parent 1e2c8fa commit 7258d72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/chapters/add_player.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ It is unexpected that a read-only operation (i.e. counting the amount of players
requires the data it works on to be mutable. The Bevy library probably
has good reasons why it must be mutable.

In general, a read-only operation should be able to work
In general, a read-only operation should be able to work
on an immutable data structure: when, for example, getting the name
of a person structure (a read-only operation),
of a person structure (a read-only operation),
we do not expect the person to change and we expect to be able to do so
on an immutable person.
Correct use the Rust keyword `mut` is what I call `mut`-correctness,
Expand All @@ -58,7 +58,7 @@ and it will give false results to do tests on uninitialized `App`s.
*Maybe* this test will pass without initialization,
but it would be an improperly conducted test.

To put `app.update()` at the end of the
To put `app.update()` at the end of the
`create_app` function is a good idea in some contexts,
as it means we do not need to call `app.update()` in each test.
A drawback of calling `app.update()` in a `create_app` function
Expand Down Expand Up @@ -113,7 +113,7 @@ fn test_empty_app_has_no_players() {
}
```

However, this test does not compile yet:
However, this test does not compile yet:

```text
error[E0412]: cannot find type `Player` in this scope
Expand Down Expand Up @@ -228,7 +228,7 @@ it is harder to understand what this does, where the function name `add_player`
was communicated this clearly. One could argue that the expression is more
complex, as it introduces a closure (more on those later).
This book picked the way that is easier to explain.
This approach also scales better when adding players, enemies, cameras,
This approach also scales better when adding players, enemies, cameras,
etcetera.

## 2.3.5. `main.rs`
Expand Down

0 comments on commit 7258d72

Please sign in to comment.