Skip to content

Commit 7e2222d

Browse files
committed
Rename example system per review feedback
1 parent 1263382 commit 7e2222d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/app/headless_defaults.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ fn main() {
1515
..default()
1616
})
1717
.add_plugins(DefaultPlugins)
18-
.add_system(do_something)
18+
.add_system(exit_unconditionally)
1919
.run();
2020
}
2121

2222
// Normally Bevy exits when all windows are closed.
2323
//
2424
// When running in headless mode there are no windows so
2525
// you must manually send an [`bevy::app::AppExit`] event.
26-
fn do_something(mut app_exit_events: EventWriter<AppExit>) {
26+
fn exit_unconditionally(mut app_exit_events: EventWriter<AppExit>) {
2727
info!("Successfully ran! Exiting...");
2828
app_exit_events.send(AppExit);
2929
}

0 commit comments

Comments
 (0)