Bump typos to 1.34.0 (#20013)

# Objective

Closes #20006

## Solution

Bump `typos` and also fix the new typos detected

## Testing

CI
This commit is contained in:
Rob Parrett 2025-07-07 13:15:06 -07:00 committed by GitHub
parent 75f49bd335
commit 2342e993ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View File

@ -294,7 +294,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Check for typos - name: Check for typos
uses: crate-ci/typos@v1.33.1 uses: crate-ci/typos@v1.34.0
- name: Typos info - name: Typos info
if: failure() if: failure()
run: | run: |

View File

@ -176,7 +176,7 @@ impl Default for SliderRange {
} }
/// Defines the amount by which to increment or decrement the slider value when using keyboard /// Defines the amount by which to increment or decrement the slider value when using keyboard
/// shorctuts. Defaults to 1.0. /// shortcuts. Defaults to 1.0.
#[derive(Component, Debug, PartialEq, Clone)] #[derive(Component, Debug, PartialEq, Clone)]
#[component(immutable)] #[component(immutable)]
pub struct SliderStep(pub f32); pub struct SliderStep(pub f32);

View File

@ -630,7 +630,7 @@ impl Archetype {
#[inline] #[inline]
pub fn len(&self) -> u32 { pub fn len(&self) -> u32 {
// No entity may have more than one archetype row, so there are no duplicates, // No entity may have more than one archetype row, so there are no duplicates,
// and there may only ever be u32::MAX entities, so the length never exceeds u32's cappacity. // and there may only ever be u32::MAX entities, so the length never exceeds u32's capacity.
self.entities.len() as u32 self.entities.len() as u32
} }

View File

@ -597,7 +597,7 @@ impl Table {
#[inline] #[inline]
pub fn entity_count(&self) -> u32 { pub fn entity_count(&self) -> u32 {
// No entity may have more than one table row, so there are no duplicates, // No entity may have more than one table row, so there are no duplicates,
// and there may only ever be u32::MAX entities, so the length never exceeds u32's cappacity. // and there may only ever be u32::MAX entities, so the length never exceeds u32's capacity.
self.entities.len() as u32 self.entities.len() as u32
} }

View File

@ -344,7 +344,7 @@ pub fn update_is_hovered(
} }
// Algorithm: for each entity having a `Hovered` component, we want to know if the current // Algorithm: for each entity having a `Hovered` component, we want to know if the current
// entry in the hover map is "within" (that is, in the set of descenants of) that entity. Rather // entry in the hover map is "within" (that is, in the set of descendants of) that entity. Rather
// than doing an expensive breadth-first traversal of children, instead start with the hovermap // than doing an expensive breadth-first traversal of children, instead start with the hovermap
// entry and search upwards. We can make this even cheaper by building a set of ancestors for // entry and search upwards. We can make this even cheaper by building a set of ancestors for
// the hovermap entry, and then testing each `Hovered` entity against that set. // the hovermap entry, and then testing each `Hovered` entity against that set.

View File

@ -215,7 +215,7 @@ pub enum ReflectRef<'a> {
/// [function-like]: Function /// [function-like]: Function
#[cfg(feature = "functions")] #[cfg(feature = "functions")]
Function(&'a dyn Function), Function(&'a dyn Function),
/// An immutable refeence to an [opaque] type. /// An immutable reference to an [opaque] type.
/// ///
/// [opaque]: ReflectKind::Opaque /// [opaque]: ReflectKind::Opaque
Opaque(&'a dyn PartialReflect), Opaque(&'a dyn PartialReflect),
@ -281,7 +281,7 @@ pub enum ReflectMut<'a> {
/// ///
/// [function-like]: Function /// [function-like]: Function
Function(&'a mut dyn Function), Function(&'a mut dyn Function),
/// A mutable refeence to an [opaque] type. /// A mutable reference to an [opaque] type.
/// ///
/// [opaque]: ReflectKind::Opaque /// [opaque]: ReflectKind::Opaque
Opaque(&'a mut dyn PartialReflect), Opaque(&'a mut dyn PartialReflect),

View File

@ -79,7 +79,7 @@ impl DebugName {
} }
} }
/// Get the [`ShortName`] corresping to this debug name /// Get the [`ShortName`] corresponding to this debug name
/// ///
/// The value will be a static string if the `debug` feature is not enabled /// The value will be a static string if the `debug` feature is not enabled
pub fn shortname(&self) -> ShortName { pub fn shortname(&self) -> ShortName {