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
4 changed files with 4 additions and 4 deletions

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);