docs fixes
This commit is contained in:
parent
4d82820e97
commit
9154556d97
@ -1320,7 +1320,7 @@ impl App {
|
|||||||
/// #
|
/// #
|
||||||
/// # let mut app = App::new();
|
/// # let mut app = App::new();
|
||||||
/// #
|
/// #
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct Party {
|
/// # struct Party {
|
||||||
/// # friends_allowed: bool,
|
/// # friends_allowed: bool,
|
||||||
/// # };
|
/// # };
|
||||||
|
@ -44,7 +44,7 @@ use crate::prelude::ReflectComponent;
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use bevy_ecs::prelude::*;
|
/// # use bevy_ecs::prelude::*;
|
||||||
/// # let mut world = World::default();
|
/// # let mut world = World::default();
|
||||||
/// #[derive(Event)]
|
/// #[derive(BroadcastEvent)]
|
||||||
/// struct Speak {
|
/// struct Speak {
|
||||||
/// message: String,
|
/// message: String,
|
||||||
/// }
|
/// }
|
||||||
@ -67,7 +67,7 @@ use crate::prelude::ReflectComponent;
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use bevy_ecs::prelude::*;
|
/// # use bevy_ecs::prelude::*;
|
||||||
/// # let mut world = World::default();
|
/// # let mut world = World::default();
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct Speak;
|
/// # struct Speak;
|
||||||
/// // These are functionally the same:
|
/// // These are functionally the same:
|
||||||
/// world.add_observer(|trigger: On<Speak>| {});
|
/// world.add_observer(|trigger: On<Speak>| {});
|
||||||
@ -79,7 +79,7 @@ use crate::prelude::ReflectComponent;
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use bevy_ecs::prelude::*;
|
/// # use bevy_ecs::prelude::*;
|
||||||
/// # let mut world = World::default();
|
/// # let mut world = World::default();
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct PrintNames;
|
/// # struct PrintNames;
|
||||||
/// # #[derive(Component, Debug)]
|
/// # #[derive(Component, Debug)]
|
||||||
/// # struct Name;
|
/// # struct Name;
|
||||||
@ -97,7 +97,7 @@ use crate::prelude::ReflectComponent;
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use bevy_ecs::prelude::*;
|
/// # use bevy_ecs::prelude::*;
|
||||||
/// # let mut world = World::default();
|
/// # let mut world = World::default();
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct SpawnThing;
|
/// # struct SpawnThing;
|
||||||
/// # #[derive(Component, Debug)]
|
/// # #[derive(Component, Debug)]
|
||||||
/// # struct Thing;
|
/// # struct Thing;
|
||||||
@ -111,9 +111,9 @@ use crate::prelude::ReflectComponent;
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use bevy_ecs::prelude::*;
|
/// # use bevy_ecs::prelude::*;
|
||||||
/// # let mut world = World::default();
|
/// # let mut world = World::default();
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct A;
|
/// # struct A;
|
||||||
/// # #[derive(Event)]
|
/// # #[derive(BroadcastEvent)]
|
||||||
/// # struct B;
|
/// # struct B;
|
||||||
/// world.add_observer(|trigger: On<A>, mut commands: Commands| {
|
/// world.add_observer(|trigger: On<A>, mut commands: Commands| {
|
||||||
/// commands.trigger(B);
|
/// commands.trigger(B);
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
//! [](https://bevy.org)
|
//! [](https://bevy.org)
|
||||||
//!
|
//!
|
||||||
//! Bevy is an open-source modular game engine built in Rust, with a focus on developer productivity
|
//! Bevy is an open-source modular game engine built in Rust, with a focus on developer productivity
|
||||||
|
Loading…
Reference in New Issue
Block a user