Skip to content

Commit abeb4ab

Browse files
authored
Merge pull request #10 from wking/no-algorithm-new
algorithm: More new removal
2 parents a7c631a + fe5ffa6 commit abeb4ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algorithm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
)
4040

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

8282
// Digester returns a new digester for the specified algorithm. If the algorithm
8383
// does not have a digester implementation, nil will be returned. This can be
84-
// checked by calling Available before calling New.
84+
// checked by calling Available before calling Digester.
8585
func (a Algorithm) Digester() Digester {
8686
return &digester{
8787
alg: a,

0 commit comments

Comments
 (0)