Fix spelling in several code comments (#1860)

Signed-off-by: renshuncui <renshun@111.com>
This commit is contained in:
renshuncui 2024-07-25 16:17:32 +09:00 committed by GitHub
parent e1df23c28e
commit 9712f9b037
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -1083,7 +1083,7 @@ fn selective_color_node(
.into_iter()
.fold((0., 0., 0.), |acc, (color_parameter_group, (c, m, y, k))| {
// Skip this color parameter group...
// ...if it's unchanged from the default of zero offset on all CMYK paramters, or...
// ...if it's unchanged from the default of zero offset on all CMYK parameters, or...
// ...if this pixel's color isn't in the range affected by this color parameter group
if (c < f32::EPSILON && m < f32::EPSILON && y < f32::EPSILON && k < f32::EPSILON) || (!pixel_color_range(color_parameter_group)) {
return acc;

View file

@ -147,7 +147,7 @@ pub struct Footprint {
pub resolution: glam::UVec2,
/// Quality of the render, this may be used by caching nodes to decide if the cached render is sufficient
pub quality: RenderQuality,
/// When the transform is set downstream, all upsream modifications have to be ignored
/// When the transform is set downstream, all upstream modifications have to be ignored
pub ignore_modifications: bool,
}

View file

@ -419,7 +419,7 @@ impl super::VectorData {
.filter_map(to_bezier)
}
/// Construct a [`bezier_rs::Bezier`] curve from an iterator of segments with (handles, start point, end point). Returns None if any ids are invalid or if the semgents are not continuous.
/// Construct a [`bezier_rs::Bezier`] curve from an iterator of segments with (handles, start point, end point). Returns None if any ids are invalid or if the segments are not continuous.
fn subpath_from_segments(&self, segments: impl Iterator<Item = (bezier_rs::BezierHandles, PointId, PointId)>) -> Option<bezier_rs::Subpath<PointId>> {
let mut first_point = None;
let mut groups = Vec::new();

View file

@ -433,7 +433,7 @@ async fn morph(footprint: Footprint, source: impl Node<Footprint, Output = Vecto
let mut source_paths = source.stroke_bezier_paths();
let mut target_paths = target.stroke_bezier_paths();
for (mut source_path, mut target_path) in (&mut source_paths).zip(&mut target_paths) {
// Deal with mistmatched transforms
// Deal with mismatched transforms
source_path.apply_transform(source.transform);
target_path.apply_transform(target.transform);