File tree 1 file changed +6
-5
lines changed
crates/bevy_ecs/src/system
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ use crate::world::{Mut, World};
14
14
///
15
15
/// Any [`Commands`](crate::system::Commands) generated by these systems (but not other systems), will immediately be applied.
16
16
///
17
- /// Stored systems cannot be chained: they can neither have an [`In`](crate::system::In) nor return any values.
17
+ /// # Limitations
18
+ ///
19
+ /// - stored systems cannot be chained: they can neither have an [`In`](crate::system::In) nor return any values.
20
+ /// - stored systems cannot recurse: they cannot run other systems via the [`SystemRegistry`] methods on `World` or `Commands`.
21
+ /// - exclusive systems cannot be used.
18
22
///
19
23
/// # Examples
20
24
///
@@ -55,10 +59,6 @@ use crate::world::{Mut, World};
55
59
/// for _ in 0..7 {
56
60
/// commands.spawn().insert(Marker);
57
61
/// }
58
- ///
59
- /// // You can even run systems via commands,
60
- /// // which will take effect the next time commands are applied
61
- /// commands.run_system(assert_7_spawned)
62
62
/// }
63
63
///
64
64
/// fn assert_7_spawned(query: Query<(), Added<Marker>>){
@@ -67,6 +67,7 @@ use crate::world::{Mut, World};
67
67
/// }
68
68
///
69
69
/// world.run_system(spawn_7_entities);
70
+ /// world.run_system(assert_7_spawned);
70
71
/// ```
71
72
///
72
73
/// ```rust
You can’t perform that action at this time.
0 commit comments