Преглед изворни кода

Fix a comment copy-and-paste error.

David Fifield пре 5 година
родитељ
комит
75a0aa6142
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      noise/noise.go

+ 1 - 1
noise/noise.go

@@ -277,7 +277,7 @@ func DecodeKey(s string) ([]byte, error) {
 	return key, err
 }
 
-// DecodeKey decodes a hex-encoded private or public key.
+// EncodeKey encodes a hex-encoded private or public key.
 func EncodeKey(key []byte) string {
 	return hex.EncodeToString(key)
 }