use function system in bevy lib.rs docs
This commit is contained in:
		
							parent
							
								
									2447672c63
								
							
						
					
					
						commit
						52e1f29e02
					
				| @ -14,11 +14,13 @@ | ||||
| //!fn main() {
 | ||||
| //!    App::build()
 | ||||
| //!        .add_default_plugins()
 | ||||
| //!        .add_system(|_: &mut World, _: &mut Resources| {
 | ||||
| //!            println!("hello world");
 | ||||
| //!        })
 | ||||
| //!        .add_system(hello_world_system.system())
 | ||||
| //!        .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/)
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson