Skip to content

Commit

Permalink
fix entity spawning (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann authored Apr 6, 2021
1 parent e5babae commit 0c7d580
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions content/learn/book/getting-started/ecs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ We can then add `People` to our {{rust_type(type="struct" crate="bevy_ecs" name=

```rs
fn add_people(mut commands: Commands) {
commands
.spawn().insert(Person).insert(Name("Elaina Proctor".to_string()))
.spawn().insert(Person).insert(Name("Renzo Hume".to_string()))
.spawn().insert(Person).insert(Name("Zayna Nieves".to_string()));
commands.spawn().insert(Person).insert(Name("Elaina Proctor".to_string()));
commands.spawn().insert(Person).insert(Name("Renzo Hume".to_string()));
commands.spawn().insert(Person).insert(Name("Zayna Nieves".to_string()));
}
```

Expand Down

0 comments on commit 0c7d580

Please sign in to comment.