Просмотр исходного кода

Fix a comment copy-and-paste error.

David Fifield 5 лет назад
Родитель
Сommit
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)
 }