mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Add missing colon in States
documentation (#11064)
# Objective The documentation for the `States` trait contains an error! There is a single colon missing from `OnExit<T:Variant>`. ## Solution Replace `OnExit<T:Variant>` with `OnExit<T::Variant>`. (Notice the added colon.) --- ## Changelog ### Added - Added missing colon in `States` documentation. --- Bevy community, you may now rest easy.
This commit is contained in:
parent
6fd580244a
commit
1142d53a99
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ pub use bevy_ecs_macros::States;
|
|||
/// You can access the current state of type `T` with the [`State<T>`] resource,
|
||||
/// and the queued state with the [`NextState<T>`] resource.
|
||||
///
|
||||
/// State transitions typically occur in the [`OnEnter<T::Variant>`] and [`OnExit<T:Variant>`] schedules,
|
||||
/// State transitions typically occur in the [`OnEnter<T::Variant>`] and [`OnExit<T::Variant>`] schedules,
|
||||
/// which can be run via the [`apply_state_transition::<T>`] system.
|
||||
///
|
||||
/// # Example
|
||||
|
|
Loading…
Reference in a new issue