Skip to content

Commit 9c00b3a

Browse files
Update Combine trait example to use unwrap_or(false) (#22410)
# Objective - Fixes #22363 ## Solution - Replace `Ok(a((), data)? ^ b((), data)?)` with `Ok(a((), data).unwrap_or(false) ^ b((), data).unwrap_or(false))` ## Testing - Doc test
1 parent 5652926 commit 9c00b3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/bevy_ecs/src/system/combinator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use super::{IntoSystem, ReadOnlySystem, RunSystemError, System};
4343
/// a: impl FnOnce(A::In, &mut T) -> Result<A::Out, RunSystemError>,
4444
/// b: impl FnOnce(B::In, &mut T) -> Result<B::Out, RunSystemError>,
4545
/// ) -> Result<Self::Out, RunSystemError> {
46-
/// Ok(a((), data)? ^ b((), data)?)
46+
/// Ok(a((), data).unwrap_or(false) ^ b((), data).unwrap_or(false))
4747
/// }
4848
/// }
4949
///

0 commit comments

Comments
 (0)