Skip to content

Commit

Permalink
Merge pull request #10 from wking/no-algorithm-new
Browse files Browse the repository at this point in the history
algorithm: More new removal
  • Loading branch information
stevvooe committed Dec 19, 2016
2 parents a7c631a + fe5ffa6 commit abeb4ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
)

// Available returns true if the digest type is available for use. If this
// returns false, New and Hash will return nil.
// returns false, Digester and Hash will return nil.
func (a Algorithm) Available() bool {
h, ok := algorithms[a]
if !ok {
Expand Down Expand Up @@ -81,7 +81,7 @@ func (a *Algorithm) Set(value string) error {

// Digester returns a new digester for the specified algorithm. If the algorithm
// does not have a digester implementation, nil will be returned. This can be
// checked by calling Available before calling New.
// checked by calling Available before calling Digester.
func (a Algorithm) Digester() Digester {
return &digester{
alg: a,
Expand Down

0 comments on commit abeb4ab

Please sign in to comment.