Skip to content

Commit 2a28e46

Browse files
authored
Fix typos (#778)
2 parents c3e489f + 378fa24 commit 2a28e46

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
Algorythm = "Algorythm"

serde_with/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ It only affects custom character sets used for base64 of which there are no inst
336336
}
337337
```
338338
339-
The `apply` attribute will expand into this, applying the attributs to the matching fields:
339+
The `apply` attribute will expand into this, applying the attributes to the matching fields:
340340
341341
```rust
342342
#[derive(serde::Serialize)]

serde_with/src/guide/serde_as.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ For more information, you can inspect the documentation of the `serde_as` macro.
9595
#[derive(Serialize, Deserialize)]
9696
struct A {
9797
#[serde_as(as = "Option<DisplayFromStr>")]
98-
// In this situation boths `Option`s will be correctly identified and
98+
// In this situation both `Option`s will be correctly identified and
9999
// `#[serde(default)]` will be applied on this field.
100100
val: Option<u32>,
101101
}

serde_with_macros/tests/compile-fail/serde_as.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ struct ConflictingAsAnnotations {
5656
normal_field: u32,
5757
#[serde_as(does_not_exist = "123")]
5858
unknown: u32,
59-
#[serde_as(unknwn1 = "Hello", unknw2 = "World")]
60-
two_unkowns: u32,
59+
#[serde_as(unknown1 = "Hello", unknown2 = "World")]
60+
two_unknowns: u32,
6161
}
6262

6363
/// Test error message for malformed attributes

serde_with_macros/tests/compile-fail/serde_as.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ error: Unknown field: `does_not_exist`
7676
57 | #[serde_as(does_not_exist = "123")]
7777
| ^^^^^^^^^^^^^^
7878

79-
error: Unknown field: `unknwn1`
79+
error: Unknown field: `unknown1`
8080
--> tests/compile-fail/serde_as.rs:59:16
8181
|
82-
59 | #[serde_as(unknwn1 = "Hello", unknw2 = "World")]
83-
| ^^^^^^^
82+
59 | #[serde_as(unknown1 = "Hello", unknown2 = "World")]
83+
| ^^^^^^^^
8484

85-
error: Unknown field: `unknw2`
86-
--> tests/compile-fail/serde_as.rs:59:35
85+
error: Unknown field: `unknown2`
86+
--> tests/compile-fail/serde_as.rs:59:36
8787
|
88-
59 | #[serde_as(unknwn1 = "Hello", unknw2 = "World")]
89-
| ^^^^^^
88+
59 | #[serde_as(unknown1 = "Hello", unknown2 = "World")]
89+
| ^^^^^^^^
9090

9191
error: Unknown literal value `123`
9292
--> tests/compile-fail/serde_as.rs:67:31

0 commit comments

Comments
 (0)