Skip to content

Commit

Permalink
docs: Fix incorrect docs in the run conditions example (bevyengine#14377
Browse files Browse the repository at this point in the history
)

## 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.
  • Loading branch information
LiamGallagher737 authored Jul 20, 2024
1 parent 3aa5258 commit 11ecc4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/ecs/run_conditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ fn main() {
.run_if(resource_exists::<Unused>.or(
// This is a custom run condition, defined using a system that returns
// a `bool` and which has read-only `SystemParam`s.
// Both run conditions 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`.
// Only a single run condition must return `true` in order for the system to run.
has_user_input,
)),
print_input_counter
Expand Down

0 comments on commit 11ecc4d

Please sign in to comment.