mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
net-adin1110: Fix typo in comment
This commit is contained in:
parent
0a19879c5d
commit
de1dc272e0
@ -16,7 +16,7 @@ const CRC8X_TABLE: [u8; 256] = [
|
||||
0xcb, 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3,
|
||||
];
|
||||
|
||||
/// Calculate the crc of a pease of data.
|
||||
/// Calculate the crc of a piece of data.
|
||||
pub fn crc8(data: &[u8]) -> u8 {
|
||||
data.iter().fold(0, |crc, &byte| CRC8X_TABLE[usize::from(byte ^ crc)])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user