mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix some more typos (#7767)
# Objective I managed to dig up some more typos with a combination of the "[code spell checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)" and "[open folder](https://marketplace.visualstudio.com/items?itemName=rwu823.open-folder)" vscode extensions. ## Solution Fix em
This commit is contained in:
parent
e6d60ad24e
commit
03c545056c
9 changed files with 10 additions and 10 deletions
|
@ -99,7 +99,7 @@ fn remove_old_entities(mut commands: Commands, entities: Query<(Entity, &Age)>)
|
|||
}
|
||||
}
|
||||
|
||||
// This system will print the new counter value everytime it was changed since
|
||||
// This system will print the new counter value every time it was changed since
|
||||
// the last execution of the system.
|
||||
fn print_counter_when_changed(entity_counter: Res<EntityCounter>) {
|
||||
if entity_counter.is_changed() {
|
||||
|
|
|
@ -36,7 +36,7 @@ impl Plugin for EnvironmentMapPlugin {
|
|||
///
|
||||
/// When added to a 3D camera, this component adds indirect light
|
||||
/// to every point of the scene (including inside, enclosed areas) based on
|
||||
/// an environment cubemap texture. This is similiar to [`crate::AmbientLight`], but
|
||||
/// an environment cubemap texture. This is similar to [`crate::AmbientLight`], but
|
||||
/// higher quality, and is intended for outdoor scenes.
|
||||
///
|
||||
/// The environment map must be prefiltered into a diffuse and specular cubemap based on the
|
||||
|
|
|
@ -2173,7 +2173,7 @@ mod test {
|
|||
// check a smaller number of clusters would not cover the screen
|
||||
assert!(clusters.tile_size.x * (clusters.dimensions.x - 1) < screen_size.x);
|
||||
assert!(clusters.tile_size.y * (clusters.dimensions.y - 1) < screen_size.y);
|
||||
// check a smaller tilesize would not cover the screen
|
||||
// check a smaller tile size would not cover the screen
|
||||
assert!((clusters.tile_size.x - 1) * clusters.dimensions.x < screen_size.x);
|
||||
assert!((clusters.tile_size.y - 1) * clusters.dimensions.y < screen_size.y);
|
||||
// check we don't have more clusters than pixels
|
||||
|
|
|
@ -39,7 +39,7 @@ impl ReflectIgnoreBehavior {
|
|||
}
|
||||
}
|
||||
|
||||
/// The exact logical opposite of `self.is_active()` returns true iff this member is not part of the reflection API whatsover (neither serialized nor reflected)
|
||||
/// The exact logical opposite of `self.is_active()` returns true iff this member is not part of the reflection API whatsoever (neither serialized nor reflected)
|
||||
pub fn is_ignored(self) -> bool {
|
||||
!self.is_active()
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ impl Plugin for VisibilityPlugin {
|
|||
use VisibilitySystems::*;
|
||||
|
||||
app.configure_set(CalculateBounds.in_base_set(CoreSet::PostUpdate))
|
||||
// We add an AABB component in CaclulateBounds, which must be ready on the same frame.
|
||||
// We add an AABB component in CalculateBounds, which must be ready on the same frame.
|
||||
.add_system(apply_system_buffers.in_set(CalculateBoundsFlush))
|
||||
.configure_set(
|
||||
CalculateBoundsFlush
|
||||
|
|
|
@ -68,7 +68,7 @@ pub struct Text2dBundle {
|
|||
pub transform: Transform,
|
||||
/// The global transform of the text.
|
||||
pub global_transform: GlobalTransform,
|
||||
/// The visbility properties of the text.
|
||||
/// The visibility properties of the text.
|
||||
pub visibility: Visibility,
|
||||
/// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
|
||||
pub computed_visibility: ComputedVisibility,
|
||||
|
|
|
@ -65,7 +65,7 @@ impl FixedTime {
|
|||
|
||||
/// Expends one `period` of accumulated time.
|
||||
///
|
||||
/// [`Err(FixedTimstepError`)] will be returned
|
||||
/// [`Err(FixedUpdateError`)] will be returned
|
||||
pub fn expend(&mut self) -> Result<(), FixedUpdateError> {
|
||||
if let Some(new_value) = self.accumulated.checked_sub(self.period) {
|
||||
self.accumulated = new_value;
|
||||
|
|
|
@ -82,8 +82,8 @@ fn time_passed(t: f32) -> impl FnMut(Local<f32>, Res<Time>) -> bool {
|
|||
|
||||
/// SYSTEM: Increment the input counter
|
||||
/// Notice how we can take just the `ResMut` and not have to wrap
|
||||
/// it in an option incase it hasen't been initialized, this is becuase
|
||||
/// it has a run codition that checks if the `InputCounter` resource exsists
|
||||
/// it in an option in case it hasn't been initialized, this is because
|
||||
/// it has a run condition that checks if the `InputCounter` resource exists
|
||||
fn increment_input_counter(mut counter: ResMut<InputCounter>) {
|
||||
counter.0 += 1;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ fn main() {
|
|||
.run();
|
||||
}
|
||||
|
||||
/// Marker component for the text that displays the current reslution.
|
||||
/// Marker component for the text that displays the current resolution.
|
||||
#[derive(Component)]
|
||||
struct ResolutionText;
|
||||
|
||||
|
|
Loading…
Reference in a new issue