From 019870fc9d457ee8abd13a2e93e3f2a3b55b7119 Mon Sep 17 00:00:00 2001 From: Artyom Pervukhin Date: Wed, 4 May 2016 15:50:21 +0300 Subject: [PATCH] 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 --- openpgp/s2k/s2k.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp/s2k/s2k.go b/openpgp/s2k/s2k.go index 0e8641e..4b9a44c 100644 --- a/openpgp/s2k/s2k.go +++ b/openpgp/s2k/s2k.go @@ -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 {