Skip to content

Commit

Permalink
rename send_default_event to send_event_default on world (bevyengine#…
Browse files Browse the repository at this point in the history
…5383)

after bevyengine#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
  • Loading branch information
mockersf authored and james7132 committed Oct 28, 2022
1 parent 88e6456 commit 3b2b959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ impl World {

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

Expand Down

0 comments on commit 3b2b959

Please sign in to comment.