Skip to content

Commit

Permalink
Add typos config, fix one comment to match (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 7, 2024
1 parent cd83264 commit 82e791c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See the configuration reference at
# https://github.com/crate-ci/typos/blob/master/docs/reference.md

# Corrections take the form of a key/value pair. The key is the incorrect word
# and the value is the correct word. If the key and value are the same, the
# word is treated as always correct. If the value is an empty string, the word
# is treated as always incorrect.

# Match Identifier - Case Sensitive
[default.extend-identifiers]
ba = "ba"
curr_iy = "curr_iy"
flate2 = "flate2"
iy = "iy"
iy0 = "iy0"
iy1 = "iy1"
numer = "numer"
numer_a = "numer_a"
numer_b = "numer_b"
PNGs = "PNGs"

# Match Inside a Word - Case Insensitive
[default.extend-words]

[files]
# Include .github, .cargo, etc.
ignore-hidden = false
extend-exclude = [
# /.git isn't in .gitignore, because git never tracks it.
# Typos doesn't know that, though.
"/.git",
]
2 changes: 1 addition & 1 deletion path/src/stroker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ impl PathStroker {
if valid_divide {
if intersect_ray_type == IntersectRayType::CtrlPt {
// the intersection of the tangents need not be on the tangent segment
// so 0 <= numerA <= 1 is not necessarily true
// so 0 <= numer_a <= 1 is not necessarily true
quad_points.quad[1].x =
start.x * (1.0 - numer_a) + quad_points.tangent_start.x * numer_a;
quad_points.quad[1].y =
Expand Down

0 comments on commit 82e791c

Please sign in to comment.