Skip to content

Commit 0032d8c

Browse files
zklapowSh3Rm4n
authored andcommitted
size range must be inclusive
1 parent ad3bf09 commit 0032d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/can.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ impl CanFrame {
578578
///
579579
/// This function will panic if length of `data` is greater than `8`
580580
pub fn new_data(id: CanId, data: &[u8]) -> CanFrame {
581-
crate::assert!((0..8).contains(&data.len()));
581+
crate::assert!((0..=8).contains(&data.len()));
582582

583583
let mut frame = Self {
584584
id,

0 commit comments

Comments
 (0)