use function system in bevy lib.rs docs

This commit is contained in:
Carter Anderson 2020-04-30 13:55:51 -07:00
parent 2447672c63
commit 52e1f29e02

View File

@ -14,11 +14,13 @@
//!fn main() { //!fn main() {
//! App::build() //! App::build()
//! .add_default_plugins() //! .add_default_plugins()
//! .add_system(|_: &mut World, _: &mut Resources| { //! .add_system(hello_world_system.system())
//! println!("hello world");
//! })
//! .run(); //! .run();
//!} //!}
//!
//!fn hello_world_system() {
//! println!("hello world");
//!}
//! ``` //! ```
//! Don't let the simplicity of the example above fool you. Bevy is a [fully featured game engine](https://bevyengine.org/learn/book/introduction/features/) //! Don't let the simplicity of the example above fool you. Bevy is a [fully featured game engine](https://bevyengine.org/learn/book/introduction/features/)