summaryrefslogtreecommitdiff
path: root/crates/tor-keymgr/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-keymgr/src')
-rw-r--r--crates/tor-keymgr/src/keystore.rs4
-rw-r--r--crates/tor-keymgr/src/keystore/ephemeral.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/tor-keymgr/src/keystore.rs b/crates/tor-keymgr/src/keystore.rs
index 5f0a3c677..b49dc1a53 100644
--- a/crates/tor-keymgr/src/keystore.rs
+++ b/crates/tor-keymgr/src/keystore.rs
@@ -230,7 +230,7 @@ enum SshKeyDataInner {
}
impl SshKeyData {
- /// Try to covnert a [`KeyData`] to [`SshKeyData`].
+ /// Try to convert a [`KeyData`] to [`SshKeyData`].
///
/// Returns an error if this type of [`KeyData`] is not supported.
pub(crate) fn try_from_key_data(key: KeyData) -> Result<Self> {
@@ -247,7 +247,7 @@ impl SshKeyData {
Ok(Self(SshKeyDataInner::Public(key)))
}
- /// Try to covnert a [`KeypairData`] to [`SshKeyData`].
+ /// Try to convert a [`KeypairData`] to [`SshKeyData`].
///
/// Returns an error if this type of [`KeypairData`] is not supported.
pub(crate) fn try_from_keypair_data(key: KeypairData) -> Result<Self> {
diff --git a/crates/tor-keymgr/src/keystore/ephemeral.rs b/crates/tor-keymgr/src/keystore/ephemeral.rs
index 75aead63f..217c30fec 100644
--- a/crates/tor-keymgr/src/keystore/ephemeral.rs
+++ b/crates/tor-keymgr/src/keystore/ephemeral.rs
@@ -223,7 +223,7 @@ mod tests {
assert!(key_store
.insert(key().as_ref(), key_spec().as_ref(), key_type_bad())
.is_err());
- // further ensure theres is no sideffects
+ // further ensure there are no side effects
assert!(!key_store
.contains(key_spec().as_ref(), key_type_bad())
.unwrap());
@@ -233,7 +233,7 @@ mod tests {
.is_none());
assert!(key_store.list().unwrap().is_empty());
- // verify inserting a goood key succeeds
+ // verify inserting a good key succeeds
assert!(key_store
.insert(key().as_ref(), key_spec().as_ref(), key_type())
.is_ok());