We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5506f1c commit fe5ffa6Copy full SHA for fe5ffa6
algorithm.go
@@ -39,7 +39,7 @@ var (
39
)
40
41
// Available returns true if the digest type is available for use. If this
42
-// returns false, New and Hash will return nil.
+// returns false, Digester and Hash will return nil.
43
func (a Algorithm) Available() bool {
44
h, ok := algorithms[a]
45
if !ok {
@@ -81,7 +81,7 @@ func (a *Algorithm) Set(value string) error {
81
82
// Digester returns a new digester for the specified algorithm. If the algorithm
83
// does not have a digester implementation, nil will be returned. This can be
84
-// checked by calling Available before calling New.
+// checked by calling Available before calling Digester.
85
func (a Algorithm) Digester() Digester {
86
return &digester{
87
alg: a,
0 commit comments