Skip to content

Commit c8161b9

Browse files
Matt Van HornMatt Van Horn
authored andcommitted
Tidy up comments by removing several cases of duplicated words (#4175)
chore: remove duplicate words in five comments All comment-only fixes. - desktop/src/window/win/native_handle.rs L228: "Return 0 to to tell Windows" -> "Return 0 to tell Windows" - node-graph/libraries/vector-types/src/vector/algorithms/spline.rs L24: "is the the second point" -> "is the second point" - node-graph/libraries/vector-types/src/vector/algorithms/poisson_disk.rs L153: panic message "couldn't be be mapped" -> "couldn't be mapped" - node-graph/libraries/rendering/src/renderer.rs L1800: "this is is achived" -> "this is achieved" (also fixes "achived") - editor/src/messages/tool/common_functionality/shapes/shape_utility.rs L494,523: "Check if the the cursor" -> "Check if the cursor" Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
1 parent 6fe1af3 commit c8161b9

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

desktop/src/window/win/native_handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ unsafe extern "system" fn main_window_handle_message(hwnd: HWND, msg: u32, wpara
225225
params.rgrc[0].bottom -= inset;
226226
}
227227

228-
// Return 0 to to tell Windows to skip the default non-client area calculation and drawing.
228+
// Return 0 to tell Windows to skip the default non-client area calculation and drawing.
229229
return LRESULT(0);
230230
}
231231

editor/src/messages/tool/common_functionality/shapes/shape_utility.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ pub fn arc_outline(layer: Option<LayerNodeIdentifier>, document: &DocumentMessag
491491
overlay_context.outline(subpath.iter(), viewport, None);
492492
}
493493

494-
/// Check if the the cursor is inside the geometric star shape made by the Star node without any upstream node modifications
494+
/// Check if the cursor is inside the geometric star shape made by the Star node without any upstream node modifications
495495
pub fn inside_star(viewport: DAffine2, n: u32, radius1: f64, radius2: f64, mouse_position: DVec2) -> bool {
496496
let mut paths = Vec::new();
497497

@@ -520,7 +520,7 @@ pub fn inside_star(viewport: DAffine2, n: u32, radius1: f64, radius2: f64, mouse
520520
winding != 0
521521
}
522522

523-
/// Check if the the cursor is inside the geometric polygon shape made by the Polygon node without any upstream node modifications
523+
/// Check if the cursor is inside the geometric polygon shape made by the Polygon node without any upstream node modifications
524524
pub fn inside_polygon(viewport: DAffine2, n: u32, radius: f64, mouse_position: DVec2) -> bool {
525525
let mut paths = Vec::new();
526526

node-graph/libraries/rendering/src/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ impl Render for List<Raster<GPU>> {
17971797
// Since colors and gradients are technically infinitely big, we have to implement
17981798
// workarounds for rendering them correctly in a way which still allows us
17991799
// to cache the intermediate render data (SVG string/Vello scene).
1800-
// For SVG, this is is achived by creating a truly giant rectangle.
1800+
// For SVG, this is achieved by creating a truly giant rectangle.
18011801
// For Vello, we create a layer with a placeholder transform which we
18021802
// later replace with the current viewport transform before each render.
18031803
impl Render for List<Color> {

node-graph/libraries/vector-types/src/vector/algorithms/poisson_disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn target_active_square(active_list_levels: &[ActiveListLevel], rng: &mut impl F
150150
return (level, active_square_index_in_level);
151151
}
152152

153-
panic!("index_into_area couldn't be be mapped to a square in any level of the active lists");
153+
panic!("index_into_area couldn't be mapped to a square in any level of the active lists");
154154
}
155155

156156
fn point_not_covered_by_poisson_points(point: DVec2, diameter_squared: f64, points_grid: &AccelerationGrid) -> bool {

node-graph/libraries/vector-types/src/vector/algorithms/spline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn solve_spline_first_handle_open(points: &[DVec2]) -> Vec<DVec2> {
2121

2222
let mut c = vec![DVec2::new(1., 1.); len_points];
2323

24-
// 'd' is the the second point in a cubic bezier, which is what we solve for
24+
// 'd' is the second point in a cubic bezier, which is what we solve for
2525
let mut d = vec![DVec2::ZERO; len_points];
2626

2727
d[0] = DVec2::new(2. * points[1].x + points[0].x, 2. * points[1].y + points[0].y);

0 commit comments

Comments
 (0)