diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 0000000..9ac17d5 --- /dev/null +++ b/.codespellignore @@ -0,0 +1 @@ +crate diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..09cff7a --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +name: Codespell + +on: + push: + branches: + - main + pull_request: + +jobs: + codespell: + name: Check for misspellings + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Run Codespell + uses: codespell-project/actions-codespell@v2 + with: + check_filenames: true + ignore_words_file: .codespellignore + skip: "*.svg" diff --git a/content/temporaries-rabbit-hole.md b/content/temporaries-rabbit-hole.md index 8f12b35..1dd7b26 100644 --- a/content/temporaries-rabbit-hole.md +++ b/content/temporaries-rabbit-hole.md @@ -223,7 +223,7 @@ So, the question is, how temporary is a temporary really? That's to say, we have ## Temporaries' lifetimes -Now we have the neccesary definitions to talk about what makes temporaries temporary. Well, not exactly, temporaries are just temporaries because they are anonymous, meaning there's no alias associated with that memory location. It has nothing to do with their lifetime. But you could ask, since there's no associated alias, then what's their lifetime? And you would be asking all the right questions. +Now we have the necessary definitions to talk about what makes temporaries temporary. Well, not exactly, temporaries are just temporaries because they are anonymous, meaning there's no alias associated with that memory location. It has nothing to do with their lifetime. But you could ask, since there's no associated alias, then what's their lifetime? And you would be asking all the right questions. Let's go to the relevant part of the definition of a temporary. diff --git a/posts/2025-05-23/ebpf-firewall/README.md b/posts/2025-05-23/ebpf-firewall/README.md index b5e7292..c031abd 100644 --- a/posts/2025-05-23/ebpf-firewall/README.md +++ b/posts/2025-05-23/ebpf-firewall/README.md @@ -521,12 +521,12 @@ And most importantly, we lookup in the rulestore if the `port` that arrived exis if left == 0 { false } else { - let indx = left - 1; - if indx >= MAX_RULES { + let index = left - 1; + if index >= MAX_RULES { return false; } // SAFETY: Again, we are already bound checking - end(*unsafe { self.rules.get_unchecked(indx) }) >= val + end(*unsafe { self.rules.get_unchecked(index) }) >= val } } ```