From e6874836cb679678d789c88dbc96240bd91007d0 Mon Sep 17 00:00:00 2001 From: JoJoJet <21144246+JoJoJet@users.noreply.github.com> Date: Sun, 26 Feb 2023 02:27:41 +0000 Subject: [PATCH] Fix a typo in `CombinatorSystem` (#7823) # Objective I made a typo in #7605. ## Solution Fix it. --- crates/bevy_ecs/src/system/combinator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/system/combinator.rs b/crates/bevy_ecs/src/system/combinator.rs index 7de7b9b053868..51304831d21ce 100644 --- a/crates/bevy_ecs/src/system/combinator.rs +++ b/crates/bevy_ecs/src/system/combinator.rs @@ -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), @@ -172,7 +172,7 @@ where let world: &'w UnsafeCell = 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() }),