diff --git a/algorithm.go b/algorithm.go index b71314e..e4842d9 100644 --- a/algorithm.go +++ b/algorithm.go @@ -79,7 +79,7 @@ func (a *Algorithm) Set(value string) error { return nil } -// New returns a new digester for the specified algorithm. If the algorithm +// 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. func (a Algorithm) Digester() Digester { diff --git a/digest.go b/digest.go index a9ab8e5..df97fd0 100644 --- a/digest.go +++ b/digest.go @@ -61,7 +61,7 @@ var ( ErrDigestUnsupported = fmt.Errorf("unsupported digest algorithm") ) -// ParseDigest parses s and returns the validated digest object. An error will +// Parse parses s and returns the validated digest object. An error will // be returned if the format is invalid. func Parse(s string) (Digest, error) { d := Digest(s)