Skip to content

Commit de3ffe9

Browse files
Improve resource_scope docs
1 parent 747511a commit de3ffe9

File tree

1 file changed

+2
-3
lines changed
  • crates/bevy_ecs/src/world

1 file changed

+2
-3
lines changed

crates/bevy_ecs/src/world/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -932,10 +932,9 @@ impl World {
932932
}
933933
}
934934

935-
/// Temporarily removes the requested resource from this [`World`], then re-adds it before
936-
/// returning. This enables safe mutable access to a resource while still providing mutable
937-
/// world access
935+
/// Temporarily removes the requested resource from this [`World`], then re-adds it before returning.
938936
///
937+
/// This enables safe simultaneous mutable access to both a resource and the rest of the [`World`].
939938
/// For more complex access patterns, consider using [`SystemState`](crate::system::SystemState).
940939
///
941940
/// # Example

0 commit comments

Comments
 (0)