Skip to content

Commit 700ef36

Browse files
committed
update doc examples with add_systems
1 parent 2cd98eb commit 700ef36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_entropy/src/plugin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::component::EntropyComponent;
1313
///
1414
/// ```
1515
/// use bevy_ecs::prelude::ResMut;
16-
/// use bevy_app::App;
16+
/// use bevy_app::{App, Update};
1717
/// use bevy_entropy::prelude::*;
1818
/// use rand_core::RngCore;
1919
/// use rand_chacha::{ChaCha8Rng, ChaCha12Rng};
@@ -22,7 +22,7 @@ use crate::component::EntropyComponent;
2222
/// App::new()
2323
/// .add_plugin(EntropyPlugin::<ChaCha8Rng>::default())
2424
/// .add_plugin(EntropyPlugin::<ChaCha12Rng>::default())
25-
/// .add_system(print_random_value)
25+
/// .add_systems(Update, print_random_value)
2626
/// .run();
2727
/// }
2828
///

0 commit comments

Comments
 (0)