Skip to content

Commit

Permalink
Note limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Mar 27, 2022
1 parent f633012 commit cbd2243
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/bevy_ecs/src/system/system_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ use crate::world::{Mut, World};
///
/// Any [`Commands`](crate::system::Commands) generated by these systems (but not other systems), will immediately be applied.
///
/// Stored systems cannot be chained: they can neither have an [`In`](crate::system::In) nor return any values.
/// # Limitations
///
/// - stored systems cannot be chained: they can neither have an [`In`](crate::system::In) nor return any values.
/// - stored systems cannot recurse: they cannot run other systems via the [`SystemRegistry`] methods on `World` or `Commands`.
/// - exclusive systems cannot be used.
///
/// # Examples
///
Expand Down Expand Up @@ -55,10 +59,6 @@ use crate::world::{Mut, World};
/// for _ in 0..7 {
/// commands.spawn().insert(Marker);
/// }
///
/// // You can even run systems via commands,
/// // which will take effect the next time commands are applied
/// commands.run_system(assert_7_spawned)
/// }
///
/// fn assert_7_spawned(query: Query<(), Added<Marker>>){
Expand All @@ -67,6 +67,7 @@ use crate::world::{Mut, World};
/// }
///
/// world.run_system(spawn_7_entities);
/// world.run_system(assert_7_spawned);
/// ```
///
/// ```rust
Expand Down

0 comments on commit cbd2243

Please sign in to comment.