hash.crc32: change *Crc32 to &Crc32

pull/1970/head
joe-conigliaro 2019-09-14 05:45:04 +10:00 committed by Alexander Medvednikov
parent 3dc4abddec
commit 81bf67ba4f
1 changed files with 1 additions and 1 deletions

View File

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