Skip to content

Commit a11f342

Browse files
committed
update for main changes
1 parent fa68c29 commit a11f342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/how_to_test_systems.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn spawn_enemy_using_input_resource() {
8787
assert_eq!(world.query::<&Enemy>().iter(&world).len(), 1);
8888

8989
// Clear the `just_pressed` status for all `KeyCode`s
90-
world.get_resource_mut::<Input<KeyCode>>().unwrap().update();
90+
world.get_resource_mut::<Input<KeyCode>>().unwrap().clear();
9191

9292
// Run systems
9393
update_stage.run(&mut world);

0 commit comments

Comments
 (0)