Skip to content

Commit 5fe2780

Browse files
authored
ci: add typos job (#692)
1 parent 1c359b5 commit 5fe2780

6 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/workspace.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,9 @@ jobs:
116116
env:
117117
RUSTDOCFLAGS: "-Dwarnings --cfg docsrs"
118118
run: cargo doc --no-deps --features std
119+
120+
typos:
121+
runs-on: ubuntu-latest
122+
steps:
123+
- uses: actions/checkout@v4
124+
- uses: crate-ci/typos@v1

.typos.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[files]
2+
extend-exclude = [
3+
".git/"
4+
]
5+
6+
[default.extend-words]
7+
"nto" = "nto"

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9292
- `register_custom_getrandom!` macro [#504]
9393
- Implementation of `From<NonZeroU32>` for `Error` and `Error::code` method [#507]
9494
- Internet Explorer 11 support [#554]
95-
- Target-specific assocciated `Error` constants [#562]
95+
- Target-specific associated `Error` constants [#562]
9696

9797
### Changed
9898
- Use `ProcessPrng` on Windows 10 and up, and use `RtlGenRandom` on older Windows versions [#415]
@@ -240,7 +240,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
240240
### Changed
241241
- Update MSRV to 1.36 [#291]
242242
- Use getentropy on Emscripten [#307]
243-
- Solaris: consistantly use `/dev/random` source [#310]
243+
- Solaris: consistently use `/dev/random` source [#310]
244244
- Move 3ds selection above rdrand/js/custom fallback [#312]
245245
- Remove buffer zeroing from Node.js implementation [#315]
246246
- Use `open` instead of `open64` [#326]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ of randomness based on their specific needs:
8585
| `rdrand` | x86, x86-64 | `x86_64-*`, `i686-*` | [`RDRAND`] instruction
8686
| `rndr` | AArch64 | `aarch64-*` | [`RNDR`] register
8787
| `wasm_js` | Web Browser, Node.js | `wasm32‑unknown‑unknown`, `wasm32v1-none` | [`Crypto.getRandomValues`]. Requires feature `wasm_js` ([see below](#webassembly-support)).
88-
| `efi_rng` | UEFI | `*-unknown‑uefi` | [`EFI_RNG_PROTOCOL`] with `EFI_RNG_ALGORITHM_RAW` (requires `std` and Nigthly compiler)
88+
| `efi_rng` | UEFI | `*-unknown‑uefi` | [`EFI_RNG_PROTOCOL`] with `EFI_RNG_ALGORITHM_RAW` (requires `std` and Nightly compiler)
8989
| `custom` | All targets | `*` | User-provided custom implementation (see [custom backend])
9090
| `unsupported` | All targets | `*` | Always returns `Err(Error::UNSUPPORTED)` (see [unsupported backend])
9191

src/backends/use_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const FD_ONGOING_INIT: libc::c_int = -2;
2727
// In theory `libc::c_int` could be something other than `i32`, but for the
2828
// targets we currently support that use `use_file`, it is always `i32`.
2929
// If/when we add support for a target where that isn't the case, we may
30-
// need to use a different atomic type or make other accomodations. The
30+
// need to use a different atomic type or make other accommodations. The
3131
// compiler will let us know if/when that is the case, because the
3232
// `FD.store(fd)` would fail to compile.
3333
//

src/backends/windows7.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! RNG APIs (and why we don't use BCryptGenRandom). On versions prior to
66
//! Windows 10, this implementation is secure. On Windows 10 and later, this
77
//! implementation behaves identically to the windows.rs implementation, except
8-
//! that it forces the loading of an additonal DLL (advapi32.dll).
8+
//! that it forces the loading of an additional DLL (advapi32.dll).
99
//!
1010
//! This implementation will not work on UWP targets (which lack advapi32.dll),
1111
//! but such targets require Windows 10, so can use the standard implementation.

0 commit comments

Comments
 (0)