Skip to content

Commit

Permalink
use fully qualified names for hash interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Nov 11, 2009
1 parent d8134e7 commit 364e564
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pkg/crypto/md5/md5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/crypto/sha1/sha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/hash/adler32/adler32.go
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/pkg/hash/crc32/crc32.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit 364e564

Please sign in to comment.