diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 148adfb..8bd3cf1 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -32,3 +32,9 @@ jobs: toolchain: 1.85.0 components: clippy - run: cargo clippy --all-features -- -D warnings + + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1.33.1 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..2923599 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,5 @@ +[files] +extend-exclude = [ + ".git/", + "ml-dsa/tests/examples/*", +] diff --git a/ml-dsa/src/module_lattice/algebra.rs b/ml-dsa/src/module_lattice/algebra.rs index 121b095..b5d2e8d 100644 --- a/ml-dsa/src/module_lattice/algebra.rs +++ b/ml-dsa/src/module_lattice/algebra.rs @@ -329,7 +329,7 @@ impl Neg for &NttPolynomial { /// An `NttVector` is a vector of polynomials from `T_q` of length `K`. NTT vectors can be /// added and subtracted. If multiplication is defined for NTT polynomials, then NTT vectors -/// can be multiplied by NTT polynomials, and "multipled" with each other to produce a dot +/// can be multiplied by NTT polynomials, and "multiplied" with each other to produce a dot /// product. #[derive(Clone, Default, Debug, PartialEq)] pub struct NttVector(pub Array, K>);