# Objective

- fix some typo

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
ZoOL 2025-04-04 01:18:09 +08:00 committed by GitHub
parent 4f2fa81cef
commit 06f9e5eca5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ pub trait Alpha: Sized {
/// Return a new version of this color with the given alpha value.
fn with_alpha(&self, alpha: f32) -> Self;
/// Return a the alpha component of this color.
/// Return the alpha component of this color.
fn alpha(&self) -> f32;
/// Sets the alpha component of this color.

View File

@ -152,7 +152,7 @@ pub struct Cancel {
pub hit: HitData,
}
/// Fires when a the pointer crosses into the bounds of the `target` entity.
/// Fires when a pointer crosses into the bounds of the `target` entity.
#[derive(Clone, PartialEq, Debug, Reflect)]
#[reflect(Clone, PartialEq)]
pub struct Over {
@ -160,7 +160,7 @@ pub struct Over {
pub hit: HitData,
}
/// Fires when a the pointer crosses out of the bounds of the `target` entity.
/// Fires when a pointer crosses out of the bounds of the `target` entity.
#[derive(Clone, PartialEq, Debug, Reflect)]
#[reflect(Clone, PartialEq)]
pub struct Out {

View File

@ -113,7 +113,7 @@ fn rotate_cube(
// Calculate the rotation of the cube if it would be looking at the sphere in the center.
let look_at_sphere = transform.looking_at(center, *transform.local_y());
// Interpolate between the current rotation and the fully turned rotation
// when looking a the sphere, with a given turn speed to get a smooth motion.
// when looking at the sphere, with a given turn speed to get a smooth motion.
// With higher speed the curvature of the orbit would be smaller.
let incremental_turn_weight = cube.turn_speed * timer.delta_secs();
let old_rotation = transform.rotation;