Skip to content

Commit cf7c197

Browse files
committed
fix example in README
1 parent 937a6a8 commit cf7c197

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/bevy_ecs/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ fn main() {
148148
// Create a new Schedule, which defines an execution strategy for Systems
149149
let mut schedule = Schedule::default();
150150

151+
// Define a unique public name for a new Stage.
152+
#[derive(StageLabel)]
153+
pub struct UpdateLabel;
154+
151155
// Add a Stage to our schedule. Each Stage in a schedule runs all of its systems
152156
// before moving on to the next Stage
153-
schedule.add_stage("update", SystemStage::parallel()
157+
schedule.add_stage(UpdateLabel, SystemStage::parallel()
154158
.with_system(movement)
155159
);
156160

0 commit comments

Comments
 (0)