Skip to content

Commit 0fa499a

Browse files
committed
rename send_default_event to send_event_default on world (#5383)
after #5355, three methods were added on world: * `send_event` * `send_event_batch` * `send_default_event` rename `send_default_event` to `send_event_default` for better discoverability
1 parent 50a4441 commit 0fa499a

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_ecs/src/world

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/world/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ impl World {
11641164

11651165
/// Sends the default value of the [`Event`](crate::event::Event) of type `E`.
11661166
#[inline]
1167-
pub fn send_default_event<E: crate::event::Event + Default>(&mut self) {
1167+
pub fn send_event_default<E: crate::event::Event + Default>(&mut self) {
11681168
self.send_event_batch(std::iter::once(E::default()));
11691169
}
11701170

0 commit comments

Comments
 (0)