Skip to content

Commit

Permalink
Fix name of parameter in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed May 29, 2023
1 parent fd1b879 commit 107e580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deku-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl DekuData {
} else if data.id.is_some() {
Err(cerror(data.id.span(), "`id` only supported on enum"))
} else if data.id_endian.is_some() {
Err(cerror(data.id.span(), "`endian_id` only supported on enum"))
Err(cerror(data.id.span(), "`id_endian` only supported on enum"))

Check warning on line 211 in deku-derive/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

deku-derive/src/lib.rs#L211

Added line #L211 was not covered by tests
} else if data.bytes.is_some() {
Err(cerror(data.bytes.span(), "`bytes` only supported on enum"))
} else if data.bits.is_some() {
Expand Down

0 comments on commit 107e580

Please sign in to comment.