Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bevy_ecs: Fix up docs for
World::run_system
and `World::run_system_…
…with_input` (#12289) # Objective - The doc example for `World::run_system_with_input` mistakenly indicates that systems share state - Some of the doc example code is unnecessary and/or could be cleaned up ## Solution Replace the incorrect result value for the correct one in the doc example. I also went with an explicit `assert_eq` check as it presents the same information but can be validated by CI via doc tests. Also removed some unnecessary code, such as the `Resource` derives on `Counter`. In fact, I just replaced `Counter` with a `u8` in the `Local`. I think it makes the example a little cleaner. --- ## Changelog - Update docs for `World::run_system` and `World::run_system_with_input`
- Loading branch information