From 9154556d971c1195bfd5de7316bdfd6c56b4b363 Mon Sep 17 00:00:00 2001 From: Tim Blackbird Date: Tue, 15 Jul 2025 20:16:43 +0200 Subject: [PATCH] docs fixes --- crates/bevy_app/src/app.rs | 2 +- crates/bevy_ecs/src/observer/distributed_storage.rs | 12 ++++++------ src/lib.rs | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index 5756286cf4..1b49497e26 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -1320,7 +1320,7 @@ impl App { /// # /// # let mut app = App::new(); /// # - /// # #[derive(Event)] + /// # #[derive(BroadcastEvent)] /// # struct Party { /// # friends_allowed: bool, /// # }; diff --git a/crates/bevy_ecs/src/observer/distributed_storage.rs b/crates/bevy_ecs/src/observer/distributed_storage.rs index 10961d4de7..30e81c84c2 100644 --- a/crates/bevy_ecs/src/observer/distributed_storage.rs +++ b/crates/bevy_ecs/src/observer/distributed_storage.rs @@ -44,7 +44,7 @@ use crate::prelude::ReflectComponent; /// ``` /// # use bevy_ecs::prelude::*; /// # let mut world = World::default(); -/// #[derive(Event)] +/// #[derive(BroadcastEvent)] /// struct Speak { /// message: String, /// } @@ -67,7 +67,7 @@ use crate::prelude::ReflectComponent; /// ``` /// # use bevy_ecs::prelude::*; /// # let mut world = World::default(); -/// # #[derive(Event)] +/// # #[derive(BroadcastEvent)] /// # struct Speak; /// // These are functionally the same: /// world.add_observer(|trigger: On| {}); @@ -79,7 +79,7 @@ use crate::prelude::ReflectComponent; /// ``` /// # use bevy_ecs::prelude::*; /// # let mut world = World::default(); -/// # #[derive(Event)] +/// # #[derive(BroadcastEvent)] /// # struct PrintNames; /// # #[derive(Component, Debug)] /// # struct Name; @@ -97,7 +97,7 @@ use crate::prelude::ReflectComponent; /// ``` /// # use bevy_ecs::prelude::*; /// # let mut world = World::default(); -/// # #[derive(Event)] +/// # #[derive(BroadcastEvent)] /// # struct SpawnThing; /// # #[derive(Component, Debug)] /// # struct Thing; @@ -111,9 +111,9 @@ use crate::prelude::ReflectComponent; /// ``` /// # use bevy_ecs::prelude::*; /// # let mut world = World::default(); -/// # #[derive(Event)] +/// # #[derive(BroadcastEvent)] /// # struct A; -/// # #[derive(Event)] +/// # #[derive(BroadcastEvent)] /// # struct B; /// world.add_observer(|trigger: On, mut commands: Commands| { /// commands.trigger(B); diff --git a/src/lib.rs b/src/lib.rs index a1b1767bdd..7a0a9994f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![cfg_attr(docsrs, feature(doc_auto_cfg))] - //! [![Bevy Logo](https://bevy.org/assets/bevy_logo_docs.svg)](https://bevy.org) //! //! Bevy is an open-source modular game engine built in Rust, with a focus on developer productivity