Skip to content

Commit 06f9e5e

Browse files
fix typo (#18696)
# Objective - fix some typo --------- Co-authored-by: Alice Cecile <[email protected]>
1 parent 4f2fa81 commit 06f9e5e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/bevy_color/src/color_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub trait Alpha: Sized {
6060
/// Return a new version of this color with the given alpha value.
6161
fn with_alpha(&self, alpha: f32) -> Self;
6262

63-
/// Return a the alpha component of this color.
63+
/// Return the alpha component of this color.
6464
fn alpha(&self) -> f32;
6565

6666
/// Sets the alpha component of this color.

crates/bevy_picking/src/events.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ pub struct Cancel {
152152
pub hit: HitData,
153153
}
154154

155-
/// Fires when a the pointer crosses into the bounds of the `target` entity.
155+
/// Fires when a pointer crosses into the bounds of the `target` entity.
156156
#[derive(Clone, PartialEq, Debug, Reflect)]
157157
#[reflect(Clone, PartialEq)]
158158
pub struct Over {
159159
/// Information about the picking intersection.
160160
pub hit: HitData,
161161
}
162162

163-
/// Fires when a the pointer crosses out of the bounds of the `target` entity.
163+
/// Fires when a pointer crosses out of the bounds of the `target` entity.
164164
#[derive(Clone, PartialEq, Debug, Reflect)]
165165
#[reflect(Clone, PartialEq)]
166166
pub struct Out {

examples/transforms/transform.rs

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

0 commit comments

Comments
 (0)