use function system in bevy lib.rs docs
This commit is contained in:
		
							parent
							
								
									2447672c63
								
							
						
					
					
						commit
						52e1f29e02
					
				| @ -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/)
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson