瀏覽代碼

chore: fix function name in comment (#1111)

kindknow 1 年之前
父節點
當前提交
9cd944d320
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cert/cert.go

+ 1 - 1
cert/cert.go

@@ -324,7 +324,7 @@ func UnmarshalEd25519PrivateKey(b []byte) (ed25519.PrivateKey, []byte, error) {
 	return k.Bytes, r, nil
 	return k.Bytes, r, nil
 }
 }
 
 
-// UnmarshalNebulaCertificate will unmarshal a protobuf byte representation of a nebula cert into its
+// UnmarshalNebulaEncryptedData will unmarshal a protobuf byte representation of a nebula cert into its
 // protobuf-generated struct.
 // protobuf-generated struct.
 func UnmarshalNebulaEncryptedData(b []byte) (*NebulaEncryptedData, error) {
 func UnmarshalNebulaEncryptedData(b []byte) (*NebulaEncryptedData, error) {
 	if len(b) == 0 {
 	if len(b) == 0 {