Skip to content

Commit 82e791c

Browse files
Add typos config, fix one comment to match (#136)
1 parent cd83264 commit 82e791c

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.typos.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# See the configuration reference at
2+
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
3+
4+
# Corrections take the form of a key/value pair. The key is the incorrect word
5+
# and the value is the correct word. If the key and value are the same, the
6+
# word is treated as always correct. If the value is an empty string, the word
7+
# is treated as always incorrect.
8+
9+
# Match Identifier - Case Sensitive
10+
[default.extend-identifiers]
11+
ba = "ba"
12+
curr_iy = "curr_iy"
13+
flate2 = "flate2"
14+
iy = "iy"
15+
iy0 = "iy0"
16+
iy1 = "iy1"
17+
numer = "numer"
18+
numer_a = "numer_a"
19+
numer_b = "numer_b"
20+
PNGs = "PNGs"
21+
22+
# Match Inside a Word - Case Insensitive
23+
[default.extend-words]
24+
25+
[files]
26+
# Include .github, .cargo, etc.
27+
ignore-hidden = false
28+
extend-exclude = [
29+
# /.git isn't in .gitignore, because git never tracks it.
30+
# Typos doesn't know that, though.
31+
"/.git",
32+
]

path/src/stroker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ impl PathStroker {
12201220
if valid_divide {
12211221
if intersect_ray_type == IntersectRayType::CtrlPt {
12221222
// the intersection of the tangents need not be on the tangent segment
1223-
// so 0 <= numerA <= 1 is not necessarily true
1223+
// so 0 <= numer_a <= 1 is not necessarily true
12241224
quad_points.quad[1].x =
12251225
start.x * (1.0 - numer_a) + quad_points.tangent_start.x * numer_a;
12261226
quad_points.quad[1].y =

0 commit comments

Comments
 (0)