Skip to content

Commit

Permalink
Fix a typo in CombinatorSystem (bevyengine#7823)
Browse files Browse the repository at this point in the history
# Objective

I made a typo in bevyengine#7605.

## Solution

Fix it.
  • Loading branch information
JoJoJet authored and Shfty committed Mar 19, 2023
1 parent b5b72aa commit e687483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/combinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ where
input,
// SAFETY: The world accesses for both underlying systems have been registered,
// so the caller will guarantee that no other systems will conflict with `a` or `b`.
// Since these closures are `!Send + !Synd + !'static`, they can never be called
// Since these closures are `!Send + !Sync + !'static`, they can never be called
// in parallel, so their world accesses will not conflict with each other.
|input| self.a.run_unsafe(input, world),
|input| self.b.run_unsafe(input, world),
Expand All @@ -172,7 +172,7 @@ where
let world: &'w UnsafeCell<World> = unsafe { std::mem::transmute(world) };
Func::combine(
input,
// SAFETY: Since these closures are `!Send + !Synd + !'static`, they can never
// SAFETY: Since these closures are `!Send + !Sync + !'static`, they can never
// be called in parallel. Since mutable access to `world` only exists within
// the scope of either closure, we can be sure they will never alias one another.
|input| self.a.run(input, unsafe { world.deref_mut() }),
Expand Down

0 comments on commit e687483

Please sign in to comment.