diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 65859f4..edca0ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,3 +115,12 @@ jobs: - name: Rust tests on PowerPC (big endian) run: cross test --target powerpc-unknown-linux-gnu + + # If this fails, consider changing your text or adding something to .typos.toml. + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: check typos + uses: crate-ci/typos@v1.28.4 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..b34973c --- /dev/null +++ b/.typos.toml @@ -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", +] diff --git a/path/src/stroker.rs b/path/src/stroker.rs index c865358..ded0b2c 100644 --- a/path/src/stroker.rs +++ b/path/src/stroker.rs @@ -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 =