correct locked_account_secret docs

This commit is contained in:
Robert Habermeier 2016-05-30 17:42:42 +02:00
parent 1465b0d34c
commit 266b4eedaa

View File

@ -325,7 +325,7 @@ impl SecretStore {
ret ret
} }
/// Returns secret for unlocked account. /// Returns secret for locked account.
pub fn locked_account_secret(&self, account: &Address, pass: &str) -> Result<crypto::Secret, SigningError> { pub fn locked_account_secret(&self, account: &Address, pass: &str) -> Result<crypto::Secret, SigningError> {
let secret_id = try!(self.account(&account).ok_or(SigningError::NoAccount)); let secret_id = try!(self.account(&account).ok_or(SigningError::NoAccount));
self.get(&secret_id, pass).or_else(|e| Err(match e { self.get(&secret_id, pass).or_else(|e| Err(match e {