Skip to content

Change examples to use AppExit #2214

@Freyja-moth

Description

@Freyja-moth

Describe the issue

Currently all examples on the website return () instead of AppExit, which is a pattern we should probably discourage.

[https://bevy.org/learn/quick-start/getting-started/ecs/]

fn main() {
    App::new().add_systems(Update, hello_world).run();
}

Proposed Solution

Change them to return AppExit

fn main() -> AppExit {
    App::new().add_systems(Update, hello_world).run()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BookC-CorrectionA typo, problem or factual issue in what we've writtenX-ControversialThere is active debate or serious implications around merging this PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions