]> Cypherpunks repositories - gostls13.git/commitdiff
use fully qualified names for hash interfaces
authorRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 20:00:15 +0000 (12:00 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 20:00:15 +0000 (12:00 -0800)
Fixes #38.

R=r1, r
https://golang.org/cl/152072

src/pkg/crypto/md5/md5.go
src/pkg/crypto/sha1/sha1.go
src/pkg/hash/adler32/adler32.go
src/pkg/hash/crc32/crc32.go

index 5194ccd7cc57171ecb67d90aabdf0e29bcb6da4f..209cd5973a75e08b0de5dda699f9c44fb49a59a5 100644 (file)
@@ -38,7 +38,7 @@ func (d *digest) Reset() {
        d.len = 0;
 }
 
-// New returns a Hash computing the SHA1 checksum.
+// New returns a hash.Hash computing the SHA1 checksum.
 func New() hash.Hash {
        d := new(digest);
        d.Reset();
index 3201a2faadc73fc201d33f10b99843ad9549fd7d..6569f5aef109cf52df0cb17477b4fad9b6698efc 100644 (file)
@@ -40,7 +40,7 @@ func (d *digest) Reset() {
        d.len = 0;
 }
 
-// New returns a Hash computing the SHA1 checksum.
+// New returns a new hash.Hash computing the SHA1 checksum.
 func New() hash.Hash {
        d := new(digest);
        d.Reset();
index 673d5edd477f472ceefeac330c0ac9e1d6631d24..ec7c6dc304b36ac6ee04ae5df093a78acb6fa460 100644 (file)
@@ -32,7 +32,7 @@ type digest struct {
 
 func (d *digest) Reset()       { d.a, d.b = 1, 0 }
 
-// New returns a new Hash32 computing the Adler-32 checksum.
+// New returns a new hash.Hash32 computing the Adler-32 checksum.
 func New() hash.Hash32 {
        d := new(digest);
        d.Reset();
index 57297abce8d3810e1e68d89943a326c8a1ca94a9..9330f98124f08b6c6c082b1a8b032caf7d07b9ca 100644 (file)
@@ -60,11 +60,11 @@ type digest struct {
        tab     *Table;
 }
 
-// New creates a new Hash computing the CRC-32 checksum
+// New creates a new hash.Hash32 computing the CRC-32 checksum
 // using the polynomial represented by the Table.
 func New(tab *Table) hash.Hash32       { return &digest{0, tab} }
 
-// NewIEEE creates a new Hash computing the CRC-32 checksum
+// NewIEEE creates a new hash.Hash32 computing the CRC-32 checksum
 // using the IEEE polynomial.
 func NewIEEE() hash.Hash32     { return New(IEEETable) }