From 2917733a3f56f9c2418f2d716d74572fe7a78bcd Mon Sep 17 00:00:00 2001 From: Tudyx <56633664+Tudyx@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:28:23 +0200 Subject: [PATCH] add typos to the ci --- .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`