Skip to content

Commit 96434d9

Browse files
authored
fix: correct typo in attribute functions (#2660)
1 parent 6199d0b commit 96434d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/ink/ir/src/ir/attrs.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ mod tests {
13851385
/// Asserts that the given sequence of [`syn::Attribute`] is correctly
13861386
/// partitioned into the expected tuple of ink! and non-ink! attributes
13871387
/// or that the expected error is returned.
1388-
fn assert_parition_attributes(
1388+
fn assert_partition_attributes(
13891389
input: Vec<syn::Attribute>,
13901390
expected: Result<(Vec<test::InkAttribute>, Vec<syn::Attribute>), &'static str>,
13911391
) {
@@ -1406,8 +1406,8 @@ mod tests {
14061406
}
14071407

14081408
#[test]
1409-
fn parition_attributes_works() {
1410-
assert_parition_attributes(
1409+
fn partition_attributes_works() {
1410+
assert_partition_attributes(
14111411
vec![
14121412
syn::parse_quote! { #[ink(message)] },
14131413
syn::parse_quote! { #[non_ink_attribute] },
@@ -1420,8 +1420,8 @@ mod tests {
14201420
}
14211421

14221422
#[test]
1423-
fn parition_duplicates_fails() {
1424-
assert_parition_attributes(
1423+
fn partition_duplicates_fails() {
1424+
assert_partition_attributes(
14251425
vec![
14261426
syn::parse_quote! { #[ink(message)] },
14271427
syn::parse_quote! { #[ink(message)] },

0 commit comments

Comments
 (0)