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
@ -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
|
||||
|
||||
@ -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 New Issue
Block a user