Skip to content

Commit

Permalink
docs: fixed order of systems in chain
Browse files Browse the repository at this point in the history
according to ecs.md
  • Loading branch information
Riximus authored Mar 8, 2024
1 parent 90a4f2a commit 4b1f92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/learn/quick-start/getting-started/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, add_people)
.add_systems(Update, (hello_world, (greet_people, update_people).chain()))
.add_systems(Update, (hello_world, (update_people, greet_people).chain()))
.run();
}
```
Expand Down Expand Up @@ -65,7 +65,7 @@ fn main() {
App::new()
.add_plugins((DefaultPlugins, HelloPlugin))
.add_systems(Startup, add_people)
.add_systems(Update, (hello_world, (greet_people, update_people).chain()))
.add_systems(Update, (hello_world, (update_people, greet_people).chain()))
.run();
}
```
Expand All @@ -77,7 +77,7 @@ Note `add_plugins` can add any number of plugins (or plugin groups like `Default
impl Plugin for HelloPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Startup, add_people)
.add_systems(Update, (hello_world, (greet_people, update_people).chain()));
.add_systems(Update, (hello_world, (update_people, greet_people).chain()));
}
}
Expand Down

0 comments on commit 4b1f92f

Please sign in to comment.