From 0a69d6de4556cc43a56b94ea7f95c64b73560eae Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 26 May 2021 20:08:01 +0200 Subject: Consistent spelling of CRC-16 --- src/crc16.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/crc16.zig b/src/crc16.zig index b69dcbc..3ea5a15 100644 --- a/src/crc16.zig +++ b/src/crc16.zig @@ -30,12 +30,12 @@ pub fn update(crc: u16, with_data: []const u8) u16 { return new_crc; } -// make returns the CRC16 checksum for the data provided. +// make returns the CRC-16 checksum for the data provided. pub fn make(data: []const u8) u16 { return update(0, data); } -// validate will check the calculated CRC16 checksum for data against the expected. +// validate will check the calculated CRC-16 checksum for data against the expected. pub fn validate(data: []const u8, expected: u16) InvalidChecksumError!void { if (make(data) != expected) return error.InvalidChecksum; } -- cgit v1.2.3