Skip to content

Commit

Permalink
chore: fix some typos (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Sep 24, 2024
1 parent 4102ecd commit 30c9199
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,5 @@ jobs:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
with:
config: ./Typos.toml
config: ./typos.toml
isolated: true

13 changes: 0 additions & 13 deletions Typos.toml

This file was deleted.

4 changes: 2 additions & 2 deletions crates/precompile/src/bls12_381/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub(super) fn extract_scalar_input(input: &[u8]) -> Result<blst_scalar, Precompi

/// Checks if the input is a valid big-endian representation of a field element.
fn is_valid_be(input: &[u8; 48]) -> bool {
for (i, modul) in input.iter().zip(MODULUS_REPR.iter()) {
match i.cmp(modul) {
for (i, modulo) in input.iter().zip(MODULUS_REPR.iter()) {
match i.cmp(modulo) {
Ordering::Greater => return false,
Ordering::Less => return true,
Ordering::Equal => continue,
Expand Down
5 changes: 5 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[default]
extend-ignore-identifiers-re = ["[sS]imular", "ba"]

[files]
extend-exclude = ["CHANGELOG.md", "tests"]

0 comments on commit 30c9199

Please sign in to comment.