diff --git a/crates/bevy_time/src/time.rs b/crates/bevy_time/src/time.rs index d78265f776..7d4a30dfe2 100644 --- a/crates/bevy_time/src/time.rs +++ b/crates/bevy_time/src/time.rs @@ -119,7 +119,7 @@ use bevy_utils::Duration; /// struct PauseEvent(bool); /// /// fn pause_system(mut time: ResMut>, mut events: EventReader) { -/// for ev in events.iter() { +/// for ev in events.read() { /// if ev.0 { /// time.pause(); /// } else {