Skip to content

Commit

Permalink
Fix a couple of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nical committed Apr 21, 2024
1 parent 45545b0 commit 4032703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/path/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ fn test_reverse_path_simple() {

let mut it = p2.iter_with_attributes();

// Using a function that explicits the argument types works around type inference issue.
// Using a function that explicitly states the argument types works around type inference issue.
fn check<'l>(
a: Option<Event<(Point, Attributes<'l>), Point>>,
b: Option<Event<(Point, Attributes<'l>), Point>>,
Expand Down Expand Up @@ -1553,7 +1553,6 @@ fn test_reverse_path_1() {

let mut it = p1.reversed().with_attributes();

// Using a function that explicits the argument types works around type inference issue.
fn check<'l>(
a: Option<Event<(Point, Attributes<'l>), Point>>,
b: Option<Event<(Point, Attributes<'l>), Point>>,
Expand Down
4 changes: 2 additions & 2 deletions crates/tessellation/src/fill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ struct ActiveEdges {
}

struct Span {
/// We store `MonotoneTesselator` behind a `Box` for performance purposes.
/// We store `MonotoneTessellator` behind a `Box` for performance purposes.
/// For more info, see [Issue #621](https://github.com/nical/lyon/pull/621).
tess: Option<Box<MonotoneTessellator>>,
}
Expand All @@ -223,7 +223,7 @@ impl Span {
struct Spans {
spans: Vec<Span>,

/// We store `MonotoneTesselator` behind a `Box` for performance purposes.
/// We store `MonotoneTessellator` behind a `Box` for performance purposes.
/// For more info, see [Issue #621](https://github.com/nical/lyon/pull/621).
#[allow(clippy::vec_box)]
pool: Vec<Box<MonotoneTessellator>>,
Expand Down

0 comments on commit 4032703

Please sign in to comment.