Skip to content

Commit 7e2d71e

Browse files
authored
chore: Fix a handful of typos and check for new ones in CI (#124)
* Fix a handful of typos Most found by https://github.com/crate-ci/typos. * Check for typos in CI
1 parent 353313a commit 7e2d71e

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.github/workflows/typos.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Typos
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
typos:
11+
name: Check for typos
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: crate-ci/typos@v1.19.0

.typos.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default]
2+
extend-ignore-re = [
3+
"ff32ba0",
4+
]
5+
6+
[files]
7+
extend-exclude = [
8+
"crates/aide/res/**/*.js",
9+
]

crates/aide/src/axum/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ mod private {
713713
pub trait Sealed {}
714714
}
715715

716-
/// A trait that extens [`axum::handler::Handler`] with API operation
716+
/// A trait that extends [`axum::handler::Handler`] with API operation
717717
/// details.
718718
///
719719
/// Just like axum's `Handler`, it is automatically implemented

crates/aide/src/gen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn infer_responses(infer: bool) {
7676
});
7777
}
7878

79-
/// Output all theoretically possbile error responses
79+
/// Output all theoretically possible error responses
8080
/// including framework-specific ones.
8181
///
8282
/// This is disabled by default.

crates/aide/src/helpers/with_api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use crate::{OperationInput, OperationOutput};
6161
/// }
6262
/// ```
6363
pub trait ApiOverride {
64-
/// The type that is being overriden
64+
/// The type that is being overridden
6565
type Target;
6666
}
6767

crates/axum-jsonschema/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl From<JsonSchemaRejection> for JsonSchemaErrorResponse {
185185
error: "deserialization failed".to_string(),
186186
extra: AdditionalError::Deserialization(DeserializationResponse {
187187
deserialization_error: VecDeque::from([PathError {
188-
// keys and index seperated by a '/'
188+
// keys and index separated by a '/'
189189
// enum is ignored because it doesn't exist in json
190190
instance_location: std::iter::once(String::new())
191191
.chain(s.path().iter().map(|s| match s {

0 commit comments

Comments
 (0)