Skip to content

Commit 62912dd

Browse files
authored
Fixed typos (#310)
I fixed some typos that I found with [`typos`](https://github.com/crate-ci/typos).
1 parent ea3fbab commit 62912dd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

impl/src/try_into.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result<TokenStre
4646

4747
let mut tokens = TokenStream::new();
4848

49-
for ((ref_type, ref original_types), ref multi_field_datas) in variants_per_types {
49+
for ((ref_type, ref original_types), ref multi_field_data) in variants_per_types {
5050
let input_type = &input.ident;
5151

5252
let pattern_ref = ref_type.pattern_ref();
@@ -55,7 +55,7 @@ pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result<TokenStre
5555

5656
let mut matchers = vec![];
5757
let vars = &numbered_vars(original_types.len(), "");
58-
for multi_field_data in multi_field_datas {
58+
for multi_field_data in multi_field_data {
5959
let patterns: Vec<_> = vars
6060
.iter()
6161
.map(|var| quote! { #pattern_ref #var })
@@ -80,7 +80,7 @@ pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result<TokenStre
8080
.collect::<Vec<_>>();
8181
format!("({})", types.join(", "))
8282
};
83-
let variant_names = multi_field_datas
83+
let variant_names = multi_field_data
8484
.iter()
8585
.map(|d| {
8686
d.variant_name

src/as.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<Frm: ?Sized, To: ?Sized> Default for Conv<Frm, To> {
1818

1919
/// Trait performing the specialization.
2020
pub trait ExtractRef {
21-
/// Inout reference type.
21+
/// Input reference type.
2222
type Frm;
2323
/// Output reference type.
2424
type To;

tests/debug.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ mod generic {
10101010
}
10111011

10121012
#[derive(Debug)]
1013-
enum InterpolatedGenericEnumIngored<A, B> {
1013+
enum InterpolatedGenericEnumIgnored<A, B> {
10141014
#[debug("A {field}")]
10151015
A { field: A },
10161016
#[debug("B")]
@@ -1021,12 +1021,12 @@ mod generic {
10211021
assert_eq!(
10221022
format!(
10231023
"{:?}",
1024-
InterpolatedGenericEnumIngored::A::<_, u8> { field: NotDebug },
1024+
InterpolatedGenericEnumIgnored::A::<_, u8> { field: NotDebug },
10251025
),
10261026
"A NotDebug",
10271027
);
10281028
assert_eq!(
1029-
format!("{:?}", InterpolatedGenericEnumIngored::B::<u8, _>(NotDebug)),
1029+
format!("{:?}", InterpolatedGenericEnumIgnored::B::<u8, _>(NotDebug)),
10301030
"B",
10311031
);
10321032
}

0 commit comments

Comments
 (0)