Skip to content

Commit 2769e47

Browse files
authored
ci: add typos job (#1196)
1 parent 8a82158 commit 2769e47

File tree

9 files changed

+19
-9
lines changed

9 files changed

+19
-9
lines changed

.github/workflows/workspace.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ jobs:
3333
toolchain: stable
3434
components: rustfmt
3535
- run: cargo fmt --all -- --check
36+
37+
typos:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: crate-ci/typos@v1

.typos.toml

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

blobby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ git-flavored [variable-length quantity][0] (VLQ) for encoding unsigned
113113
numbers.
114114

115115
File starts with a number of de-duplicated blobs `d`. It followed by `d`
116-
entries. Each entry starts with an integer `m`, immediately folowed by `m`
116+
entries. Each entry starts with an integer `m`, immediately followed by `m`
117117
bytes representing de-duplicated binary blob.
118118

119119
Next follows unspecified number of entries representing sequence of stored

fiat-constify/src/type_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl TypeRegistry {
4242

4343
/// Get the [`Type`] which the identifier is.
4444
///
45-
/// Returns `None` whe ident can't be found.
45+
/// Returns `None` when ident can't be found.
4646
pub fn get(&self, ident: &Ident) -> Option<Type> {
4747
self.0.get(ident).copied()
4848
}

hex-literal/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn empty() {
1717
#[test]
1818
fn upper_case() {
1919
assert_eq!(hex!("AE DF 04 B2"), [0xae, 0xdf, 0x04, 0xb2]);
20-
assert_eq!(hex!("FF BA 8C 00 01"), [0xff, 0xba, 0x8c, 0x00, 0x01]);
20+
assert_eq!(hex!("FF BE 8C 00 01"), [0xff, 0xbe, 0x8c, 0x00, 0x01]);
2121
}
2222

2323
#[test]

inout/src/reserved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<T> InOutBufReserved<'_, '_, T> {
9595
}
9696

9797
/// Split buffer into `InOutBuf` with input length and mutable slice pointing to
98-
/// the reamining reserved suffix.
98+
/// the remaining reserved suffix.
9999
pub fn split_reserved(&mut self) -> (InOutBuf<'_, '_, T>, &mut [T]) {
100100
let in_len = self.get_in_len();
101101
let out_len = self.get_out_len();

opaque-debug/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! assert_eq!(format!("{:?}", val), "CryptoStuff { ... }")
2121
//! ```
2222
//!
23-
//! The macro also support generic paramters:
23+
//! The macro also support generic parameters:
2424
//! ```
2525
//! pub struct GenericCryptoStuff<K> {
2626
//! key: K,

zeroize/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ NOTE: yanked because [#900] bumped MSRV to 1.60, which vioates our MSRV policy.
9494

9595
## 1.5.4 (2022-03-16)
9696
### Added
97-
- Nightly-only upport for zeroizing ARM64 SIMD registers ([#749])
97+
- Nightly-only support for zeroizing ARM64 SIMD registers ([#749])
9898

9999
[#749]: https://github.com/RustCrypto/utils/pull/749
100100

@@ -220,7 +220,7 @@ are deriving `Zeroize`.
220220
- Bound blanket array impls on `Zeroize` instead of `DefaultIsZeroes`
221221
- Require `zeroize(drop)` or `zeroize(no_drop)` attributes when deriving
222222
`Zeroize` .
223-
- Support stablized 'alloc' crate
223+
- Support stabilized 'alloc' crate
224224

225225
## 0.8.0 (2019-05-20)
226226
- Impl `Drop` by default when deriving `Zeroize`

zeroize/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ where
400400
// Ensures self is None and that the value was dropped. Without the take, the drop
401401
// of the (zeroized) value isn't called, which might lead to a leak or other
402402
// unexpected behavior. For example, if this were Option<Vec<T>>, the above call to
403-
// zeroize would not free the allocated memory, but the the `take` call will.
403+
// zeroize would not free the allocated memory, but the `take` call will.
404404
self.take();
405405
}
406406

@@ -617,7 +617,7 @@ impl Zeroize for CString {
617617
}
618618
}
619619

620-
/// `Zeroizing` is a a wrapper for any `Z: Zeroize` type which implements a
620+
/// `Zeroizing` is a wrapper for any `Z: Zeroize` type which implements a
621621
/// `Drop` handler which zeroizes dropped values.
622622
#[derive(Debug, Default, Eq, PartialEq)]
623623
pub struct Zeroizing<Z: Zeroize>(Z);

0 commit comments

Comments
 (0)