We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adc3671 commit e84ec4bCopy full SHA for e84ec4b
crates/bevy_ecs/macros/src/lib.rs
@@ -1,7 +1,7 @@
1
extern crate proc_macro;
2
3
-mod event;
4
mod component;
+mod event;
5
mod fetch;
6
7
use crate::fetch::derive_world_query_impl;
crates/bevy_ecs/src/event.rs
@@ -129,9 +129,11 @@ struct EventInstance<E: Event> {
129
///
130
/// # Missed events
131
132
-/// Obscure bugs may arise if an [`EventReader`] does not read all events before they are cleared.
+/// Obscure bugs may arise if an [`EventReader`] does not read all events before they are cleared.
133
/// To emit a warning when this happens, annotate the event with `#[event(warn_missed)]`.
134
/// ```
135
+/// # use bevy_ecs::event::{Event, Events};
136
+/// #
137
/// #[derive(Event)]
138
/// #[event(warn_missed)]
139
/// struct MyEvent;
0 commit comments