diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index af56109c114c7..ae1efa7694334 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -268,7 +268,7 @@ impl App { /// /// Windowed apps are typically driven by an *event loop* or *message loop* and /// some window-manager APIs expect programs to terminate when their primary - /// window is closed and that event loop terminates – behaviour of processes that + /// window is closed and that event loop terminates – behavior of processes that /// do not is often platform dependent or undocumented. /// /// By default, *Bevy* uses the `winit` crate for window creation. See diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index 53256befa3b12..198f8ace01ae8 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -129,7 +129,7 @@ fn tick_global_task_pools(_main_thread_marker: Option>) { /// Maintains a count of frames rendered since the start of the application. /// /// [`FrameCount`] is incremented during [`Last`], providing predictable -/// behaviour: it will be 0 during the first update, 1 during the next, and so forth. +/// behavior: it will be 0 during the first update, 1 during the next, and so forth. /// /// # Overflows /// diff --git a/crates/bevy_core_pipeline/src/fxaa/fxaa.wgsl b/crates/bevy_core_pipeline/src/fxaa/fxaa.wgsl index 26278f5d7a7d0..390809d458372 100644 --- a/crates/bevy_core_pipeline/src/fxaa/fxaa.wgsl +++ b/crates/bevy_core_pipeline/src/fxaa/fxaa.wgsl @@ -86,7 +86,7 @@ fn fragment(in: FullscreenVertexOutput) -> @location(0) vec4 { // Luma at the current fragment let lumaCenter = rgb2luma(colorCenter); - // Luma at the four direct neighbours of the current fragment. + // Luma at the four direct neighbors of the current fragment. let lumaDown = rgb2luma(textureSampleLevel(screenTexture, samp, texCoord, 0.0, vec2(0, -1)).rgb); let lumaUp = rgb2luma(textureSampleLevel(screenTexture, samp, texCoord, 0.0, vec2(0, 1)).rgb); let lumaLeft = rgb2luma(textureSampleLevel(screenTexture, samp, texCoord, 0.0, vec2(-1, 0)).rgb); @@ -237,7 +237,7 @@ fn fragment(in: FullscreenVertexOutput) -> @location(0) vec4 { // Is the luma at center smaller than the local average ? let isLumaCenterSmaller = lumaCenter < lumaLocalAverage; - // If the luma at center is smaller than at its neighbour, the delta luma at each end should be positive (same variation). + // If the luma at center is smaller than at its neighbor, the delta luma at each end should be positive (same variation). let correctVariation1 = (lumaEnd1 < 0.0) != isLumaCenterSmaller; let correctVariation2 = (lumaEnd2 < 0.0) != isLumaCenterSmaller; diff --git a/crates/bevy_core_pipeline/src/tonemapping/tonemapping_shared.wgsl b/crates/bevy_core_pipeline/src/tonemapping/tonemapping_shared.wgsl index 92ef671550446..d0c8a0951aa45 100644 --- a/crates/bevy_core_pipeline/src/tonemapping/tonemapping_shared.wgsl +++ b/crates/bevy_core_pipeline/src/tonemapping/tonemapping_shared.wgsl @@ -168,14 +168,14 @@ fn saturation(color: vec3, saturationAmount: f32) -> vec3 { ref[0] */ fn convertOpenDomainToNormalizedLog2(color: vec3, minimum_ev: f32, maximum_ev: f32) -> vec3 { - let in_midgrey = 0.18; + let in_midgray = 0.18; // remove negative before log transform var color = max(vec3(0.0), color); // avoid infinite issue with log -- ref[1] color = select(color, 0.00001525878 + color, color < 0.00003051757); color = clamp( - log2(color / in_midgrey), + log2(color / in_midgray), vec3(minimum_ev), vec3(maximum_ev) ); @@ -187,12 +187,12 @@ fn convertOpenDomainToNormalizedLog2(color: vec3, minimum_ev: f32, maximum_ // Inverse of above fn convertNormalizedLog2ToOpenDomain(color: vec3, minimum_ev: f32, maximum_ev: f32) -> vec3 { var color = color; - let in_midgrey = 0.18; + let in_midgray = 0.18; let total_exposure = maximum_ev - minimum_ev; color = (color * total_exposure) + minimum_ev; color = pow(vec3(2.0), color); - color = color * in_midgrey; + color = color * in_midgray; return color; } diff --git a/crates/bevy_ecs/src/bundle.rs b/crates/bevy_ecs/src/bundle.rs index c86ef4bad1fde..15dccd80da1ea 100644 --- a/crates/bevy_ecs/src/bundle.rs +++ b/crates/bevy_ecs/src/bundle.rs @@ -39,14 +39,14 @@ use std::any::TypeId; /// will be overwritten. /// /// Importantly, bundles are only their constituent set of components. -/// You **should not** use bundles as a unit of behaviour. -/// The behaviour of your app can only be considered in terms of components, as systems, -/// which drive the behaviour of a `bevy` application, operate on combinations of +/// You **should not** use bundles as a unit of behavior. +/// The behavior of your app can only be considered in terms of components, as systems, +/// which drive the behavior of a `bevy` application, operate on combinations of /// components. /// /// This rule is also important because multiple bundles may contain the same component type, /// calculated in different ways — adding both of these bundles to one entity -/// would create incoherent behaviour. +/// would create incoherent behavior. /// This would be unexpected if bundles were treated as an abstraction boundary, as /// the abstraction would be unmaintainable for these cases. /// For example, both `Camera3dBundle` and `Camera2dBundle` contain the `CameraRenderGraph` diff --git a/crates/bevy_ecs/src/component.rs b/crates/bevy_ecs/src/component.rs index a7c090e0f4e42..dc3f572610dcd 100644 --- a/crates/bevy_ecs/src/component.rs +++ b/crates/bevy_ecs/src/component.rs @@ -260,7 +260,7 @@ impl ComponentInfo { /// represented as Rust types for scripting or other advanced use-cases. /// /// A `ComponentId` is tightly coupled to its parent `World`. Attempting to use a `ComponentId` from -/// one `World` to access the metadata of a `Component` in a different `World` is undefined behaviour +/// one `World` to access the metadata of a `Component` in a different `World` is undefined behavior /// and must not be attempted. #[derive(Debug, Copy, Clone, Hash, Ord, PartialOrd, Eq, PartialEq)] pub struct ComponentId(usize); diff --git a/crates/bevy_ecs/src/event.rs b/crates/bevy_ecs/src/event.rs index c740f5e4e4782..02e71e0f6b34c 100644 --- a/crates/bevy_ecs/src/event.rs +++ b/crates/bevy_ecs/src/event.rs @@ -211,8 +211,8 @@ impl<'w, 's, E: Event> EventReader<'w, 's, E> { /// /// # Example /// - /// The following example shows a useful pattern where some behaviour is triggered if new events are available. - /// [`EventReader::clear()`] is used so the same events don't re-trigger the behaviour the next time the system runs. + /// The following example shows a useful pattern where some behavior is triggered if new events are available. + /// [`EventReader::clear()`] is used so the same events don't re-trigger the behavior the next time the system runs. /// /// ``` /// # use bevy_ecs::prelude::*; diff --git a/crates/bevy_ecs/src/query/fetch.rs b/crates/bevy_ecs/src/query/fetch.rs index e198df5b4263a..fc570b0ca44e6 100644 --- a/crates/bevy_ecs/src/query/fetch.rs +++ b/crates/bevy_ecs/src/query/fetch.rs @@ -41,7 +41,7 @@ use std::{cell::UnsafeCell, marker::PhantomData}; /// Similar to change detection filters but it is used as a query fetch parameter. /// It exposes methods to check for changes to the wrapped component. /// -/// Implementing the trait manually can allow for a fundamentally new type of behaviour. +/// Implementing the trait manually can allow for a fundamentally new type of behavior. /// /// # Trait derivation /// diff --git a/crates/bevy_ecs/src/system/exclusive_function_system.rs b/crates/bevy_ecs/src/system/exclusive_function_system.rs index d82c6ff153bee..1469a903e90dd 100644 --- a/crates/bevy_ecs/src/system/exclusive_function_system.rs +++ b/crates/bevy_ecs/src/system/exclusive_function_system.rs @@ -193,7 +193,7 @@ macro_rules! impl_exclusive_system_function { #[inline] fn run(&mut self, world: &mut World, _in: (), param_value: ExclusiveSystemParamItem< ($($param,)*)>) -> Out { // Yes, this is strange, but `rustc` fails to compile this impl - // without using this function. It fails to recognise that `func` + // without using this function. It fails to recognize that `func` // is a function, potentially because of the multiple impls of `FnMut` #[allow(clippy::too_many_arguments)] fn call_inner( @@ -221,7 +221,7 @@ macro_rules! impl_exclusive_system_function { #[inline] fn run(&mut self, world: &mut World, input: Input, param_value: ExclusiveSystemParamItem< ($($param,)*)>) -> Out { // Yes, this is strange, but `rustc` fails to compile this impl - // without using this function. It fails to recognise that `func` + // without using this function. It fails to recognize that `func` // is a function, potentially because of the multiple impls of `FnMut` #[allow(clippy::too_many_arguments)] fn call_inner( diff --git a/crates/bevy_ecs/src/system/function_system.rs b/crates/bevy_ecs/src/system/function_system.rs index 8bda168b78bf0..a56e5d85fe119 100644 --- a/crates/bevy_ecs/src/system/function_system.rs +++ b/crates/bevy_ecs/src/system/function_system.rs @@ -644,7 +644,7 @@ macro_rules! impl_system_function { #[inline] fn run(&mut self, _input: (), param_value: SystemParamItem< ($($param,)*)>) -> Out { // Yes, this is strange, but `rustc` fails to compile this impl - // without using this function. It fails to recognise that `func` + // without using this function. It fails to recognize that `func` // is a function, potentially because of the multiple impls of `FnMut` #[allow(clippy::too_many_arguments)] fn call_inner( diff --git a/crates/bevy_input/src/touch.rs b/crates/bevy_input/src/touch.rs index 65e4beb5c378c..991a7b229c836 100644 --- a/crates/bevy_input/src/touch.rs +++ b/crates/bevy_input/src/touch.rs @@ -96,8 +96,8 @@ pub enum ForceTouch { /// /// It is used to describe the phase of the touch input that is currently active. /// This includes a phase that indicates that a touch input has started or ended, -/// or that a finger has moved. There is also a cancelled phase that indicates that -/// the system cancelled the tracking of the finger. +/// or that a finger has moved. There is also a canceled phase that indicates that +/// the system canceled the tracking of the finger. #[derive(Debug, Hash, PartialEq, Eq, Clone, Copy, Reflect, FromReflect)] #[reflect(Debug, Hash, PartialEq)] #[cfg_attr( @@ -112,7 +112,7 @@ pub enum TouchPhase { Moved, /// A finger stopped touching the touchscreen. Ended, - /// The system cancelled the tracking of the finger. + /// The system canceled the tracking of the finger. /// /// This occurs when the window loses focus, or on iOS if the user moves the /// device against their face. @@ -230,7 +230,7 @@ pub struct Touches { just_pressed: HashMap, /// A collection of every [`Touch`] that just got released. just_released: HashMap, - /// A collection of every [`Touch`] that just got cancelled. + /// A collection of every [`Touch`] that just got canceled. just_canceled: HashMap, } @@ -280,17 +280,17 @@ impl Touches { self.just_released.values() } - /// Checks if any touch input was just cancelled. + /// Checks if any touch input was just canceled. pub fn any_just_canceled(&self) -> bool { !self.just_canceled.is_empty() } - /// Returns `true` if the input corresponding to the `id` has just been cancelled. + /// Returns `true` if the input corresponding to the `id` has just been canceled. pub fn just_canceled(&self, id: u64) -> bool { self.just_canceled.contains_key(&id) } - /// An iterator visiting every just cancelled [`Touch`] input in arbitrary order. + /// An iterator visiting every just canceled [`Touch`] input in arbitrary order. pub fn iter_just_canceled(&self) -> impl Iterator { self.just_canceled.values() } @@ -389,7 +389,7 @@ mod test { force: None, }; - // Add a touch to `just_pressed`, 'just_released', and 'just cancelled' + // Add a touch to `just_pressed`, 'just_released', and 'just canceled' touches.just_pressed.insert(4, touch_event); touches.just_released.insert(4, touch_event); diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index 5c22883bbbf40..8922a42e81dd7 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -124,7 +124,7 @@ impl SpotLight { impl Default for SpotLight { fn default() -> Self { - // a quarter arc attenuating from the centre + // a quarter arc attenuating from the center Self { color: Color::rgb(1.0, 1.0, 1.0), /// Luminous power in lumens diff --git a/crates/bevy_pbr/src/render/light.rs b/crates/bevy_pbr/src/render/light.rs index 1df01bfe05d8d..dc28bdfc0690b 100644 --- a/crates/bevy_pbr/src/render/light.rs +++ b/crates/bevy_pbr/src/render/light.rs @@ -641,7 +641,7 @@ pub(crate) fn spot_light_view_matrix(transform: &GlobalTransform) -> Mat4 { } pub(crate) fn spot_light_projection_matrix(angle: f32) -> Mat4 { - // spot light projection FOV is 2x the angle from spot light centre to outer edge + // spot light projection FOV is 2x the angle from spot light center to outer edge Mat4::perspective_infinite_reverse_rh(angle * 2.0, 1.0, POINT_LIGHT_NEAR_Z) } diff --git a/crates/bevy_pbr/src/render/shadows.wgsl b/crates/bevy_pbr/src/render/shadows.wgsl index 8da216803b934..e634d950d5c69 100644 --- a/crates/bevy_pbr/src/render/shadows.wgsl +++ b/crates/bevy_pbr/src/render/shadows.wgsl @@ -33,7 +33,7 @@ fn fetch_point_shadow(light_id: u32, frag_position: vec4, surface_normal: v // Do the lookup, using HW PCF and comparison. Cubemaps assume a left-handed coordinate space, // so we have to flip the z-axis when sampling. // NOTE: Due to the non-uniform control flow above, we must use the Level variant of - // textureSampleCompare to avoid undefined behaviour due to some of the fragments in + // textureSampleCompare to avoid undefined behavior due to some of the fragments in // a quad (2x2 fragments) being processed not being sampled, and this messing with // mip-mapping functionality. The shadow maps have no mipmaps so Level just samples // from LOD 0. diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs b/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs index 6f63710cdc45f..a57378067b9df 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs @@ -31,7 +31,7 @@ pub(crate) enum ReflectIgnoreBehavior { } impl ReflectIgnoreBehavior { - /// Returns `true` if the ignoring behaviour implies member is included in the reflection API, and false otherwise. + /// Returns `true` if the ignoring behavior implies member is included in the reflection API, and false otherwise. pub fn is_active(self) -> bool { match self { ReflectIgnoreBehavior::None | ReflectIgnoreBehavior::IgnoreSerialization => true, diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/utility.rs b/crates/bevy_reflect/bevy_reflect_derive/src/utility.rs index 2ba4229426a47..ff3a83a7a2565 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/utility.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/utility.rs @@ -177,7 +177,7 @@ impl ResultSifter { } } -/// Converts an iterator over ignore behaviour of members to a bitset of ignored members. +/// Converts an iterator over ignore behavior of members to a bitset of ignored members. /// /// Takes into account the fact that always ignored (non-reflected) members are skipped. /// diff --git a/crates/bevy_render/src/render_phase/mod.rs b/crates/bevy_render/src/render_phase/mod.rs index 47d6a59c1b439..7c7ad41a5eb4a 100644 --- a/crates/bevy_render/src/render_phase/mod.rs +++ b/crates/bevy_render/src/render_phase/mod.rs @@ -4,7 +4,7 @@ //! In Bevy each view (camera, or shadow-casting light, etc.) has one or multiple [`RenderPhase`]s //! (e.g. opaque, transparent, shadow, etc). //! They are used to queue entities for rendering. -//! Multiple phases might be required due to different sorting/batching behaviours +//! Multiple phases might be required due to different sorting/batching behaviors //! (e.g. opaque: front to back, transparent: back to front) or because one phase depends on //! the rendered texture of the previous phase (e.g. for screen-space reflections). //! @@ -45,7 +45,7 @@ use std::ops::Range; /// /// Each view (camera, or shadow-casting light, etc.) can have one or multiple render phases. /// They are used to queue entities for rendering. -/// Multiple phases might be required due to different sorting/batching behaviours +/// Multiple phases might be required due to different sorting/batching behaviors /// (e.g. opaque: front to back, transparent: back to front) or because one phase depends on /// the rendered texture of the previous phase (e.g. for screen-space reflections). /// All [`PhaseItem`]s are then rendered using a single [`TrackedRenderPass`]. diff --git a/crates/bevy_tasks/src/task_pool.rs b/crates/bevy_tasks/src/task_pool.rs index 69bb2cea27892..d74c385d247dc 100644 --- a/crates/bevy_tasks/src/task_pool.rs +++ b/crates/bevy_tasks/src/task_pool.rs @@ -501,7 +501,7 @@ impl TaskPool { } /// Spawns a static future onto the thread pool. The returned Task is a future. It can also be - /// cancelled and "detached" allowing it to continue running without having to be polled by the + /// canceled and "detached" allowing it to continue running without having to be polled by the /// end-user. /// /// If the provided future is non-`Send`, [`TaskPool::spawn_local`] should be used instead. @@ -514,7 +514,7 @@ impl TaskPool { /// Spawns a static future on the thread-local async executor for the current thread. The task /// will run entirely on the thread the task was spawned on. The returned Task is a future. - /// It can also be cancelled and "detached" allowing it to continue running without having + /// It can also be canceled and "detached" allowing it to continue running without having /// to be polled by the end-user. Users should generally prefer to use [`TaskPool::spawn`] /// instead, unless the provided future is not `Send`. pub fn spawn_local(&self, future: impl Future + 'static) -> Task diff --git a/crates/bevy_text/src/text.rs b/crates/bevy_text/src/text.rs index 0ac8f75da55fb..9d4a4c1615dd8 100644 --- a/crates/bevy_text/src/text.rs +++ b/crates/bevy_text/src/text.rs @@ -180,10 +180,10 @@ impl Default for TextStyle { pub enum BreakLineOn { /// Uses the [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/). /// Lines will be broken up at the nearest suitable word boundary, usually a space. - /// This behaviour suits most cases, as it keeps words intact across linebreaks. + /// This behavior suits most cases, as it keeps words intact across linebreaks. WordBoundary, /// Lines will be broken without discrimination on any character that would leave bounds. - /// This is closer to the behaviour one might expect from text in a terminal. + /// This is closer to the behavior one might expect from text in a terminal. /// However it may lead to words being broken up across linebreaks. AnyCharacter, } diff --git a/crates/bevy_window/src/event.rs b/crates/bevy_window/src/event.rs index 52576729f702b..fbaa843928816 100644 --- a/crates/bevy_window/src/event.rs +++ b/crates/bevy_window/src/event.rs @@ -56,7 +56,7 @@ pub struct WindowCreated { /// /// If the default [`WindowPlugin`] is used, these events are handled /// by closing the corresponding [`Window`]. -/// To disable this behaviour, set `close_when_requested` on the [`WindowPlugin`] +/// To disable this behavior, set `close_when_requested` on the [`WindowPlugin`] /// to `false`. /// /// [`WindowPlugin`]: crate::WindowPlugin @@ -269,9 +269,9 @@ pub enum FileDragAndDrop { path_buf: PathBuf, }, - /// File hovering was cancelled. + /// File hovering was canceled. HoveredFileCanceled { - /// Window that had a cancelled file drop. + /// Window that had a canceled file drop. window: Entity, }, } diff --git a/crates/bevy_window/src/system.rs b/crates/bevy_window/src/system.rs index ddd2e726409b7..a077d93753625 100644 --- a/crates/bevy_window/src/system.rs +++ b/crates/bevy_window/src/system.rs @@ -7,7 +7,7 @@ use bevy_input::{keyboard::KeyCode, Input}; /// Exit the application when there are no open windows. /// /// This system is added by the [`WindowPlugin`] in the default configuration. -/// To disable this behaviour, set `close_when_requested` (on the [`WindowPlugin`]) to `false`. +/// To disable this behavior, set `close_when_requested` (on the [`WindowPlugin`]) to `false`. /// Ensure that you read the caveats documented on that field if doing so. /// /// [`WindowPlugin`]: crate::WindowPlugin @@ -36,7 +36,7 @@ pub fn exit_on_primary_closed( /// Close windows in response to [`WindowCloseRequested`] (e.g. when the close button is pressed). /// /// This system is added by the [`WindowPlugin`] in the default configuration. -/// To disable this behaviour, set `close_when_requested` (on the [`WindowPlugin`]) to `false`. +/// To disable this behavior, set `close_when_requested` (on the [`WindowPlugin`]) to `false`. /// Ensure that you read the caveats documented on that field if doing so. /// /// [`WindowPlugin`]: crate::WindowPlugin diff --git a/examples/2d/rotation.rs b/examples/2d/rotation.rs index 7ee59cfe72686..3447543b7541a 100644 --- a/examples/2d/rotation.rs +++ b/examples/2d/rotation.rs @@ -69,7 +69,7 @@ fn setup(mut commands: Commands, asset_server: Res) { ..default() }, Player { - movement_speed: 500.0, // metres per second + movement_speed: 500.0, // meters per second rotation_speed: f32::to_radians(360.0), // degrees per second }, )); diff --git a/examples/3d/skybox.rs b/examples/3d/skybox.rs index 0291eca9af571..0ce8237cd6f2d 100644 --- a/examples/3d/skybox.rs +++ b/examples/3d/skybox.rs @@ -81,7 +81,7 @@ fn setup(mut commands: Commands, asset_server: Res) { // ambient light // NOTE: The ambient light is used to scale how bright the environment map is so with a bright - // environment map, use an appropriate colour and brightness to match + // environment map, use an appropriate color and brightness to match commands.insert_resource(AmbientLight { color: Color::rgb_u8(210, 220, 240), brightness: 1.0, diff --git a/examples/games/contributors.rs b/examples/games/contributors.rs index f76e0778f027f..f5eb0462feaeb 100644 --- a/examples/games/contributors.rs +++ b/examples/games/contributors.rs @@ -221,7 +221,7 @@ fn select( text.sections[1].style.color = sprite.color; } -/// Change the modulate color to the "deselected" colour and push +/// Change the modulate color to the "deselected" color and push /// the object to the back. fn deselect(sprite: &mut Sprite, contributor: &Contributor, transform: &mut Transform) { sprite.color = Color::hsla( diff --git a/examples/games/game_menu.rs b/examples/games/game_menu.rs index bc2c3d7c00d2c..0ba535928c068 100644 --- a/examples/games/game_menu.rs +++ b/examples/games/game_menu.rs @@ -301,7 +301,7 @@ mod menu { OnExit(MenuState::SettingsSound), despawn_screen::, ) - // Common systems to all screens that handles buttons behaviour + // Common systems to all screens that handles buttons behavior .add_systems( Update, (menu_action, button_system).run_if(in_state(GameState::Menu)), diff --git a/examples/input/touch_input.rs b/examples/input/touch_input.rs index 5d899e77297ef..613c79b226eb3 100644 --- a/examples/input/touch_input.rs +++ b/examples/input/touch_input.rs @@ -27,7 +27,7 @@ fn touch_system(touches: Res) { } for touch in touches.iter_just_canceled() { - info!("cancelled touch with id: {:?}", touch.id()); + info!("canceled touch with id: {:?}", touch.id()); } // you can also iterate all current touches and retrieve their state like this: diff --git a/examples/ui/text_debug.rs b/examples/ui/text_debug.rs index 5f4ae622519c2..6ee0ecf468539 100644 --- a/examples/ui/text_debug.rs +++ b/examples/ui/text_debug.rs @@ -44,7 +44,7 @@ fn infotext_system(mut commands: Commands, asset_server: Res) { }), ); commands.spawn(TextBundle::from_section( - "This text is very long, has a limited width, is centred, is positioned in the top right and is also coloured pink.", + "This text is very long, has a limited width, is centered, is positioned in the top right and is also colored pink.", TextStyle { font: font.clone(), font_size: 50.0, diff --git a/examples/ui/z_index.rs b/examples/ui/z_index.rs index 8d91d8abc62f6..7bf1d80cbc7af 100644 --- a/examples/ui/z_index.rs +++ b/examples/ui/z_index.rs @@ -54,7 +54,7 @@ fn setup(mut commands: Commands) { }); // spawn a node with a positive local z-index of 2. - // it will show above other nodes in the grey container. + // it will show above other nodes in the gray container. parent.spawn(NodeBundle { z_index: ZIndex::Local(2), background_color: Color::BLUE.into(), @@ -69,7 +69,7 @@ fn setup(mut commands: Commands) { }); // spawn a node with a negative local z-index. - // it will show under other nodes in the grey container. + // it will show under other nodes in the gray container. parent.spawn(NodeBundle { z_index: ZIndex::Local(-1), background_color: Color::GREEN.into(), @@ -85,7 +85,7 @@ fn setup(mut commands: Commands) { // spawn a node with a positive global z-index of 1. // it will show above all other nodes, because it's the highest global z-index in this example. - // by default, boxes all share the global z-index of 0 that the grey container is added to. + // by default, boxes all share the global z-index of 0 that the gray container is added to. parent.spawn(NodeBundle { z_index: ZIndex::Global(1), background_color: Color::PURPLE.into(),