mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 22:48:38 +00:00
docs: Fix incorrect docs in the run conditions example (#14377)
## Objective Make the docs say the right thing. ## Solution Edit the docs so they say the right thing. Seems like overtime the example has changed but the comment did not change with it. It originally was a AND but is now an OR.
This commit is contained in:
parent
3aa525885b
commit
11ecc4d322
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ fn main() {
|
||||||
.run_if(resource_exists::<Unused>.or(
|
.run_if(resource_exists::<Unused>.or(
|
||||||
// This is a custom run condition, defined using a system that returns
|
// This is a custom run condition, defined using a system that returns
|
||||||
// a `bool` and which has read-only `SystemParam`s.
|
// a `bool` and which has read-only `SystemParam`s.
|
||||||
// Both run conditions must return `true` in order for the system to run.
|
// Only a single run condition must return `true` in order for the system to run.
|
||||||
// Note that this second run condition will be evaluated even if the first returns `false`.
|
|
||||||
has_user_input,
|
has_user_input,
|
||||||
)),
|
)),
|
||||||
print_input_counter
|
print_input_counter
|
||||||
|
|
Loading…
Add table
Reference in a new issue