From 2abe133a941dc5b1a020bf1dc06a5828db9162a9 Mon Sep 17 00:00:00 2001 From: Tudyx <56633664+Tudyx@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:54:40 +0200 Subject: [PATCH] add typos-rs to ci (#24) --- .github/workflows/ci.yml | 16 +++++++++++++--- matcher/src/lib.rs | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2c2d73..e478b6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: dtolnay/rust-toolchain@master @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable @@ -71,3 +71,13 @@ jobs: run: cargo doc --no-deps --workspace --document-private-items env: RUSTDOCFLAGS: -D warnings + + typos: + name: Typos + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Run typos + uses: crate-ci/typos@v1.16.11 diff --git a/matcher/src/lib.rs b/matcher/src/lib.rs index c38cffa..4812fc4 100644 --- a/matcher/src/lib.rs +++ b/matcher/src/lib.rs @@ -93,7 +93,7 @@ use crate::matrix::MatrixSlab; /// memory is fairly large (around 135KB) so creating a matcher is expensive. /// /// All `.._match` functions will not compute the indices of the matched -/// characters. These should be used to prefitler to filter and rank all +/// characters. These should be used to prefilter to filter and rank all /// matches. All `.._indices` functions will also compute the indices of the /// matched characters but are slower compared to the `..match` variant. These /// should be used when rendering the best N matches. Note that the `indices`