hash.crc32: fix typo (#8749)

pull/8771/head
Quix 2021-02-15 10:52:45 -05:00 committed by GitHub
parent 64018e6f14
commit 49505d4090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ pub fn(c &Crc32) checksum(b []byte) u32 {
return c.sum32(b) return c.sum32(b)
} }
// pass the polinomial to use // pass the polynomial to use
pub fn new(poly int) &Crc32 { pub fn new(poly int) &Crc32 {
mut c := &Crc32{} mut c := &Crc32{}
c.generate_table(poly) c.generate_table(poly)