Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Sep 25, 2023
1 parent 8ace2ff commit f1b05b9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/reflect/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl<C: Component + Reflect + FromWorld> FromType<C> for ReflectComponent {
},
reflect_unchecked_mut: |entity| {
// SAFETY: reflect_unchecked_mut is an unsafe function pointer used by
// `reflect_unchecked_mut` which must be called with an UnsafeEntityCell with access to the the component `C` on the `entity`
// `reflect_unchecked_mut` which must be called with an UnsafeEntityCell with access to the component `C` on the `entity`
unsafe {
entity.get_mut::<C>().map(|c| Mut {
value: c.value as &mut dyn Reflect,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/pbr_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub struct StandardMaterial {
/// - It will look weird on bent/non-planar surfaces.
/// - The depth of the pixel does not reflect its visual position, resulting
/// in artifacts for depth-dependent features such as fog or SSAO.
/// - For the same reason, the the geometry silhouette will always be
/// - For the same reason, the geometry silhouette will always be
/// the one of the actual geometry, not the parallaxed version, resulting
/// in awkward looks on intersecting parallaxed surfaces.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_render/src/render_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<A: RenderAsset> RenderAssets<A> {
}
}

/// This system extracts all crated or modified assets of the corresponding [`RenderAsset`] type
/// This system extracts all created or modified assets of the corresponding [`RenderAsset`] type
/// into the "render world".
fn extract_render_asset<A: RenderAsset>(
mut commands: Commands,
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_ui/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ mod tests {

world.despawn(ui_entity);

// `ui_layout_system` will recieve a `RemovedComponents<Node>` event for `ui_entity`
// and remove `ui_entity` from `ui_node` from the internal layout tree
// `ui_layout_system` will receive a `RemovedComponents<Node>` event for `ui_entity`
// and remove `ui_entity` from `ui_node` from the internal layout tree
ui_schedule.run(&mut world);

let ui_surface = world.resource::<UiSurface>();
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_utils/src/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ macro_rules! define_boxed_label {
($label_trait_name:ident) => {
/// A strongly-typed label.
pub trait $label_trait_name: 'static + Send + Sync + ::std::fmt::Debug {
/// Return's the [`TypeId`] of this label, or the the ID of the
/// Return's the [`TypeId`] of this label, or the ID of the
/// wrapped label type for `Box<dyn
#[doc = stringify!($label_trait_name)]
/// >`
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ pub struct EnabledButtons {
///
/// macOS note: When [`Window`] `resizable` member is set to `false`
/// the maximize button will be disabled regardless of this value.
/// Additionaly, when `resizable` is set to `true` the window will
/// Additionally, when `resizable` is set to `true` the window will
/// be maximized when its bar is double-clicked regardless of whether
/// the maximize button is enabled or not.
pub maximize: bool,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub static ANDROID_APP: std::sync::OnceLock<AndroidApp> = std::sync::OnceLock::n
/// events.
///
/// This plugin will add systems and resources that sync with the `winit` backend and also
/// replace the exising [`App`] runner with one that constructs an [event loop](EventLoop) to
/// replace the existing [`App`] runner with one that constructs an [event loop](EventLoop) to
/// receive window and input events from the OS.
#[derive(Default)]
pub struct WinitPlugin;
Expand Down

0 comments on commit f1b05b9

Please sign in to comment.