ソースを参照

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
 	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 {
 func EncodeKey(key []byte) string {
 	return hex.EncodeToString(key)
 	return hex.EncodeToString(key)
 }
 }