Skip to content

Commit 136bbde

Browse files
committed
fixed doc
1 parent be10bbd commit 136bbde

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/crypto/keyring.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ func GetKey(kr keyring.Keyring, keyName string) (*keyring.Record, error) {
136136
return kr.Key(keyName)
137137
}
138138

139-
// LoadKeyring creates a test keyring in dir, imports the mnemonic using the
140-
// specified key type, and returns the keyring, pubkey bytes, and Lumera address.
139+
// LoadKeyring creates a test keyring in a temporary directory under
140+
// os.TempDir(), imports the mnemonic using the specified key type, and returns
141+
// the keyring, pubkey bytes, and Lumera address.
141142
//
142-
// dir is the directory for the test keyring. If empty, a temporary directory
143-
// under os.TempDir() is created (cleaned up by the OS on reboot). For
144-
// production use, prefer NewKeyring with an explicit directory and import keys
145-
// via kr.NewAccount directly.
143+
// The temporary directory is cleaned up by the OS on reboot. For production
144+
// use, prefer NewKeyring with an explicit directory and import keys via
145+
// kr.NewAccount directly.
146146
func LoadKeyring(keyName, mnemonicFile string, keyType KeyType) (keyring.Keyring, []byte, string, error) {
147147
if keyName == "" {
148148
return nil, nil, "", fmt.Errorf("key name is required")

0 commit comments

Comments
 (0)