Skip to content

Commit 74f94cb

Browse files
committed
simpler grammar
1 parent 6e66a61 commit 74f94cb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

crates/bevy_ecs/src/change_detection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ pub const MAX_CHANGE_AGE: u32 = u32::MAX - (2 * CHECK_TICK_THRESHOLD - 1);
4343
/// ```
4444
///
4545
pub trait DetectChanges {
46-
/// Returns `true` if this value was added after the system last ran, `false` otherwise.
46+
/// Returns `true` if this value was added after the system last ran.
4747
fn is_added(&self) -> bool;
4848

49-
/// Returns `true` if this value was added or mutably dereferenced after the system last ran, `false` otherwise.
49+
/// Returns `true` if this value was added or mutably dereferenced after the system last ran.
5050
fn is_changed(&self) -> bool;
5151

5252
/// Flags this value as having been changed.

crates/bevy_ecs/src/component.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pub struct ComponentTicks {
355355

356356
impl ComponentTicks {
357357
#[inline]
358-
/// Returns `true` if the component was added after the system last ran, `false` otherwise.
358+
/// Returns `true` if the component was added after the system last ran.
359359
pub fn is_added(&self, last_change_tick: u32, change_tick: u32) -> bool {
360360
// This works even with wraparound because the world tick (`change_tick`) is always "newer" than
361361
// `last_change_tick` and `self.added`, and we scan periodically to clamp `ComponentTicks` values
@@ -371,7 +371,7 @@ impl ComponentTicks {
371371
}
372372

373373
#[inline]
374-
/// Returns `true` if the component was added or mutably dereferenced after the system last ran, `false` otherwise.
374+
/// Returns `true` if the component was added or mutably dereferenced after the system last ran.
375375
pub fn is_changed(&self, last_change_tick: u32, change_tick: u32) -> bool {
376376
// This works even with wraparound because the world tick (`change_tick`) is always "newer" than
377377
// `last_change_tick` and `self.changed`, and we scan periodically to clamp `ComponentTicks` values

crates/bevy_ecs/src/system/system_param.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ where
213213
}
214214

215215
impl<'w, T: Resource> Res<'w, T> {
216-
/// Returns `true` if the resource was added after the system last ran, `false` otherwise.
216+
/// Returns `true` if the resource was added after the system last ran.
217217
pub fn is_added(&self) -> bool {
218218
self.ticks.is_added(self.last_change_tick, self.change_tick)
219219
}
220220

221-
/// Returns `true` if the resource was added or mutably dereferenced after the system last ran, `false` otherwise.
221+
/// Returns `true` if the resource was added or mutably dereferenced after the system last ran.
222222
pub fn is_changed(&self) -> bool {
223223
self.ticks
224224
.is_changed(self.last_change_tick, self.change_tick)
@@ -777,12 +777,12 @@ where
777777
}
778778

779779
impl<'w, T: 'static> NonSend<'w, T> {
780-
/// Returns `true` if the resource was added after the system last ran, `false` otherwise.
780+
/// Returns `true` if the resource was added after the system last ran.
781781
pub fn is_added(&self) -> bool {
782782
self.ticks.is_added(self.last_change_tick, self.change_tick)
783783
}
784784

785-
/// Returns `true` if the resource was added or mutably dereferenced after the system last ran, `false` otherwise.
785+
/// Returns `true` if the resource was added or mutably dereferenced after the system last ran.
786786
pub fn is_changed(&self) -> bool {
787787
self.ticks
788788
.is_changed(self.last_change_tick, self.change_tick)

0 commit comments

Comments
 (0)