From de7d1c409474f0fe5cf88e5d106da683ea79f12e Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 12 Nov 2014 18:48:00 +1100 Subject: [PATCH] hash/crc32: fix comment that the IEEE polynomial applies to MPEG-2. LGTM=minux R=adg, minux CC=golang-codereviews https://golang.org/cl/170520043 --- src/hash/crc32/crc32.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash/crc32/crc32.go b/src/hash/crc32/crc32.go index a2a21a06f9..6a6b9473be 100644 --- a/src/hash/crc32/crc32.go +++ b/src/hash/crc32/crc32.go @@ -17,8 +17,8 @@ const Size = 4 // Predefined polynomials. const ( - // Far and away the most common CRC-32 polynomial. - // Used by ethernet (IEEE 802.3), v.42, fddi, gzip, zip, png, mpeg-2, ... + // IEEE is by far and away the most common CRC-32 polynomial. + // Used by ethernet (IEEE 802.3), v.42, fddi, gzip, zip, png, ... IEEE = 0xedb88320 // Castagnoli's polynomial, used in iSCSI. -- 2.48.1