Skip to content

Commit

Permalink
rephrase is_empty docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed May 7, 2022
1 parent a0dd088 commit c7545e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl<'w, 's, T: Resource> EventReader<'w, 's, T> {
self.events.event_reader_len(self.last_event_count.0)
}

/// Determines if there are any events available to be read without consuming any.
/// Determines if no events are available to be read without consuming any.
/// If you need to consume the iterator you can use [`EventReader::any`]
/// WARNING: `events.is_empty()` is not the same as doing `!events.any()`
pub fn is_empty(&self) -> bool {
Expand Down

0 comments on commit c7545e6

Please sign in to comment.