diff --git a/README.md b/README.md index 07a038c..db1cdd1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ All mutability can be _piped out_ of your code. use bevy::prelude::*; use bevy_pipe_affect::prelude::*; -fn main() { +fn main() -> AppExit { App::new() .add_plugins(DefaultPlugins) .add_systems( @@ -25,14 +25,36 @@ fn main() { pure(rainbow_clear_color) // pure() is optional, just forces the system to be read-only .pipe(affect), ) - .run(); + .run() } /// This system defines the clear color as a pure function of time. -fn rainbow_clear_color(time: Res