Skip to content

Commit

Permalink
fix observer docs (#15415)
Browse files Browse the repository at this point in the history
# Objective

- #15331

## Solution

-Just changed it to Trigger since the function signature shows it's just
a wrapper trait

## Testing

Will let tests pass

---------

Co-authored-by: Fernan Lukban <[email protected]>
Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: Antony <[email protected]>
  • Loading branch information
4 people authored Sep 25, 2024
1 parent fcddb54 commit eb92ba8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bevy_ecs/src/system/observer_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ use crate::{

use super::IntoSystem;

/// Implemented for systems that have an [`Observer`] as the first argument.
///
/// [`Observer`]: crate::observer::Observer
/// Implemented for [`System`]s that have a [`Trigger`] as the first argument.
pub trait ObserverSystem<E: 'static, B: Bundle, Out = ()>:
System<In = Trigger<'static, E, B>, Out = Out> + Send + 'static
{
Expand Down

0 comments on commit eb92ba8

Please sign in to comment.