Skip to content

Commit a241587

Browse files
Fix docs for Single and Populated
1 parent 42f6e7e commit a241587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/system/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ impl<'w, 'q, Q: QueryData, F: QueryFilter> From<&'q mut Query<'w, '_, Q, F>>
25742574
/// [System parameter] that provides access to single entity's components, much like [`Query::single`]/[`Query::single_mut`].
25752575
///
25762576
/// This [`SystemParam`](crate::system::SystemParam) fails validation if zero or more than one matching entity exists.
2577-
/// This will cause a panic, but can be configured to do nothing or warn once.
2577+
/// This will cause the system to be skipped, according to the rules laid out in [`ValidationOutcome`](crate::system::ValidationOutcome).
25782578
///
25792579
/// Use [`Option<Single<D, F>>`] instead if zero or one matching entities can exist.
25802580
///
@@ -2610,7 +2610,7 @@ impl<'w, D: QueryData, F: QueryFilter> Single<'w, D, F> {
26102610
/// [System parameter] that works very much like [`Query`] except it always contains at least one matching entity.
26112611
///
26122612
/// This [`SystemParam`](crate::system::SystemParam) fails validation if no matching entities exist.
2613-
/// This will cause a panic, but can be configured to do nothing or warn once.
2613+
/// This will cause the system to be skipped, according to the rules laid out in [`ValidationOutcome`](crate::system::ValidationOutcome).
26142614
///
26152615
/// Much like [`Query::is_empty`] the worst case runtime will be `O(n)` where `n` is the number of *potential* matches.
26162616
/// This can be notably expensive for queries that rely on non-archetypal filters such as [`Added`](crate::query::Added) or [`Changed`](crate::query::Changed)

0 commit comments

Comments
 (0)