mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix typos (#9965)
# Objective - There were a few typos in the project. - This PR fixes these typos. ## Solution - Fixing the typos. Signed-off-by: SADIK KUZU <sadikkuzu@hotmail.com>
This commit is contained in:
parent
f8fd93f418
commit
483f2464a8
6 changed files with 7 additions and 7 deletions
|
@ -251,7 +251,7 @@ impl Schedule {
|
||||||
|
|
||||||
world.check_change_ticks();
|
world.check_change_ticks();
|
||||||
self.initialize(world)
|
self.initialize(world)
|
||||||
.unwrap_or_else(|e| panic!("Error when intializing schedule {:?}: {e}", self.name));
|
.unwrap_or_else(|e| panic!("Error when initializing schedule {:?}: {e}", self.name));
|
||||||
self.executor.run(&mut self.executable, world);
|
self.executor.run(&mut self.executable, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ pub struct SystemId(Entity);
|
||||||
impl World {
|
impl World {
|
||||||
/// Registers a system and returns a [`SystemId`] so it can later be called by [`World::run_system`].
|
/// Registers a system and returns a [`SystemId`] so it can later be called by [`World::run_system`].
|
||||||
///
|
///
|
||||||
/// It's possible to register the same systems more than once, they'll be stored seperately.
|
/// It's possible to register the same systems more than once, they'll be stored separately.
|
||||||
///
|
///
|
||||||
/// This is different from adding systems to a [`Schedule`](crate::schedule::Schedule),
|
/// This is different from adding systems to a [`Schedule`](crate::schedule::Schedule),
|
||||||
/// because the [`SystemId`] that is returned can be used anywhere in the [`World`] to run the associated system.
|
/// because the [`SystemId`] that is returned can be used anywhere in the [`World`] to run the associated system.
|
||||||
|
|
|
@ -174,7 +174,7 @@ impl<'a> From<&'a EntityWorldMut<'_>> for EntityRef<'a> {
|
||||||
impl<'w> From<EntityMut<'w>> for EntityRef<'w> {
|
impl<'w> From<EntityMut<'w>> for EntityRef<'w> {
|
||||||
fn from(value: EntityMut<'w>) -> Self {
|
fn from(value: EntityMut<'w>) -> Self {
|
||||||
// SAFETY:
|
// SAFETY:
|
||||||
// - `EntityMut` gurantees exclusive access to all of the entity's components.
|
// - `EntityMut` guarantees exclusive access to all of the entity's components.
|
||||||
unsafe { EntityRef::new(value.0) }
|
unsafe { EntityRef::new(value.0) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ impl<'w> From<EntityMut<'w>> for EntityRef<'w> {
|
||||||
impl<'a> From<&'a EntityMut<'_>> for EntityRef<'a> {
|
impl<'a> From<&'a EntityMut<'_>> for EntityRef<'a> {
|
||||||
fn from(value: &'a EntityMut<'_>) -> Self {
|
fn from(value: &'a EntityMut<'_>) -> Self {
|
||||||
// SAFETY:
|
// SAFETY:
|
||||||
// - `EntityMut` gurantees exclusive access to all of the entity's components.
|
// - `EntityMut` guarantees exclusive access to all of the entity's components.
|
||||||
// - `&value` ensures there are no mutable accesses.
|
// - `&value` ensures there are no mutable accesses.
|
||||||
unsafe { EntityRef::new(value.0) }
|
unsafe { EntityRef::new(value.0) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ impl Parent {
|
||||||
|
|
||||||
/// Gets the parent [`Entity`] as a slice of length 1.
|
/// Gets the parent [`Entity`] as a slice of length 1.
|
||||||
///
|
///
|
||||||
/// Useful for making APIs that require a type or homogenous storage
|
/// Useful for making APIs that require a type or homogeneous storage
|
||||||
/// for both [`Children`] & [`Parent`] that is agnostic to edge direction.
|
/// for both [`Children`] & [`Parent`] that is agnostic to edge direction.
|
||||||
///
|
///
|
||||||
/// [`Children`]: super::children::Children
|
/// [`Children`]: super::children::Children
|
||||||
|
|
|
@ -1392,7 +1392,7 @@ fn try_into_grid_span(span: u16) -> Result<Option<NonZeroU16>, GridPlacementErro
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Errors that occur when setting contraints for a `GridPlacement`
|
/// Errors that occur when setting constraints for a `GridPlacement`
|
||||||
#[derive(Debug, Eq, PartialEq, Clone, Copy, Error)]
|
#[derive(Debug, Eq, PartialEq, Clone, Copy, Error)]
|
||||||
pub enum GridPlacementError {
|
pub enum GridPlacementError {
|
||||||
#[error("Zero is not a valid grid position")]
|
#[error("Zero is not a valid grid position")]
|
||||||
|
|
|
@ -24,7 +24,7 @@ fn gamepad_events(
|
||||||
// Handles the boolean measure of whether a button is considered pressed or unpressed, as
|
// Handles the boolean measure of whether a button is considered pressed or unpressed, as
|
||||||
// defined by the thresholds in `GamepadSettings::button_settings` and measured by
|
// defined by the thresholds in `GamepadSettings::button_settings` and measured by
|
||||||
// `Input<GamepadButton>`. When the threshold is crossed and the button state changes,
|
// `Input<GamepadButton>`. When the threshold is crossed and the button state changes,
|
||||||
// this event is emmitted.
|
// this event is emitted.
|
||||||
mut button_input_events: EventReader<GamepadButtonInput>,
|
mut button_input_events: EventReader<GamepadButtonInput>,
|
||||||
) {
|
) {
|
||||||
for connection_event in connection_events.read() {
|
for connection_event in connection_events.read() {
|
||||||
|
|
Loading…
Reference in a new issue