bevy/crates/bevy_app/src
Benjamin Brienen 3e405ed537
Improve SubApp documentation example (#16160)
# Objective

Fix #15841

## Solution

Added an update schedule as recommended in the issue.

## Testing

Doc test is run and passes.

Ran the example in a test app before and after adding the line.

## Showcase

Before:

```
PS C:\Users\BenjaminBrienen\source\bevy_experiment_test> cargo run
    Blocking waiting for file lock on build directory
   Compiling bevy_experiment_test v0.1.0 (C:\Users\BenjaminBrienen\source\bevy_experiment_test)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 41s
     Running `target\debug\bevy_experiment_test.exe`
```

(nothing happens)

After:

```
PS C:\Users\BenjaminBrienen\source\bevy_experiment_test> cargo run
    Blocking waiting for file lock on build directory
   Compiling bevy_experiment_test v0.1.0 (C:\Users\BenjaminBrienen\source\bevy_experiment_test)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.64s
     Running `target\debug\bevy_experiment_test.exe`
system of subapp is executing and the Counter: 10
```
2024-10-30 22:12:25 +00:00
..
app.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
lib.rs Documentation for variadics (#15387) 2024-10-02 12:48:36 +00:00
main_schedule.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
panic_handler.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
plugin.rs Documentation for variadics (#15387) 2024-10-02 12:48:36 +00:00
plugin_group.rs Fix bevy_picking plugin suffixes (#16082) 2024-10-25 20:11:51 +00:00
schedule_runner.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
sub_app.rs Improve SubApp documentation example (#16160) 2024-10-30 22:12:25 +00:00
terminal_ctrl_c_handler.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00