Skip to content

Commit e687483

Browse files
joseph-gioProfLander
authored andcommitted
Fix a typo in CombinatorSystem (bevyengine#7823)
# Objective I made a typo in bevyengine#7605. ## Solution Fix it.
1 parent b5b72aa commit e687483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/system/combinator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ where
159159
input,
160160
// SAFETY: The world accesses for both underlying systems have been registered,
161161
// so the caller will guarantee that no other systems will conflict with `a` or `b`.
162-
// Since these closures are `!Send + !Synd + !'static`, they can never be called
162+
// Since these closures are `!Send + !Sync + !'static`, they can never be called
163163
// in parallel, so their world accesses will not conflict with each other.
164164
|input| self.a.run_unsafe(input, world),
165165
|input| self.b.run_unsafe(input, world),
@@ -172,7 +172,7 @@ where
172172
let world: &'w UnsafeCell<World> = unsafe { std::mem::transmute(world) };
173173
Func::combine(
174174
input,
175-
// SAFETY: Since these closures are `!Send + !Synd + !'static`, they can never
175+
// SAFETY: Since these closures are `!Send + !Sync + !'static`, they can never
176176
// be called in parallel. Since mutable access to `world` only exists within
177177
// the scope of either closure, we can be sure they will never alias one another.
178178
|input| self.a.run(input, unsafe { world.deref_mut() }),

0 commit comments

Comments
 (0)