x/crypto/openpgp/s2k: fix misleading function comment
Remove mention of panic from HashIdToString doc. Change-Id: If606dc1ebad53ef5c1b052fff36499af2b44a806 Reviewed-on: https://go-review.googlesource.com/22760 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
2cb52d9374
commit
019870fc9d
+1
-1
@@ -251,7 +251,7 @@ func HashIdToHash(id byte) (h crypto.Hash, ok bool) {
|
||||
}
|
||||
|
||||
// HashIdToString returns the name of the hash function corresponding to the
|
||||
// given OpenPGP hash id, or panics if id is unknown.
|
||||
// given OpenPGP hash id.
|
||||
func HashIdToString(id byte) (name string, ok bool) {
|
||||
for _, m := range hashToHashIdMapping {
|
||||
if m.id == id {
|
||||
|
||||
Reference in New Issue
Block a user