diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index cf50737df3df04..d4182205407884 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -1,7 +1,7 @@ use crate::{CoreStage, Events, Plugin, PluginGroup, PluginGroupBuilder, StartupStage}; use bevy_ecs::{ component::{Component, ComponentDescriptor}, - prelude::{FromWorld, IntoExclusiveSystem, IntoSystem}, + prelude::{FromWorld, IntoExclusiveSystem}, schedule::{ IntoSystemDescriptor, RunOnce, Schedule, Stage, StageLabel, State, SystemSet, SystemStage, }, @@ -180,7 +180,7 @@ impl App { /// Adds a system that runs every time `app.update()` is called by the runner /// /// Systems are the main building block in the Bevy ECS app model. You can define - /// normal rust functions, and call `.system()` to make them be Bevy systems. + /// normal rust functions, and use them as a Bevy system. /// /// System functions can have parameters, through which one can query and /// mutate Bevy ECS states. @@ -201,7 +201,7 @@ impl App { /// } /// /// App::new() - /// .add_system(my_system.system()); + /// .add_system(my_system); /// ``` pub fn add_system(&mut self, system: impl IntoSystemDescriptor) -> &mut Self { self.add_system_to_stage(CoreStage::Update, system) @@ -248,7 +248,7 @@ impl App { /// } /// /// App::new() - /// .add_startup_system(my_startup_system.system()); + /// .add_startup_system(my_startup_system); /// ``` pub fn add_startup_system( &mut self, @@ -335,7 +335,7 @@ impl App { T: Component, { self.insert_resource(Events::::default()) - .add_system_to_stage(CoreStage::First, Events::::update_system.system()) + .add_system_to_stage(CoreStage::First, Events::::update_system) } /// Inserts a resource to the current [App] and overwrites any resource previously added of the same type.