Skip to content

Commit

Permalink
Add tilde slash
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jul 29, 2024
1 parent d47d2f8 commit 4aba4cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssh-key/src/dot_ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl DotSsh {
self.path.join("config")
}

/// Iterate over the private keys in the `.ssh` directory.
/// Iterate over the private keys in the `~/.ssh` directory.
pub fn private_keys(&self) -> Result<impl Iterator<Item = PrivateKey>> {
Ok(PrivateKeysIter {
read_dir: fs::read_dir(&self.path)?,
Expand All @@ -56,7 +56,7 @@ impl DotSsh {
.find(|key| key.public_key().fingerprint(fingerprint.algorithm()) == fingerprint)
}

/// Iterate over the public keys in the `.ssh` directory.
/// Iterate over the public keys in the `~/.ssh` directory.
pub fn public_keys(&self) -> Result<impl Iterator<Item = PublicKey>> {
Ok(PublicKeysIter {
read_dir: fs::read_dir(&self.path)?,
Expand All @@ -78,7 +78,7 @@ impl Default for DotSsh {
}
}

/// Iterator over the private keys in the `.ssh` directory.
/// Iterator over the private keys in the `~/.ssh` directory.
pub struct PrivateKeysIter {
read_dir: ReadDir,
}
Expand All @@ -97,7 +97,7 @@ impl Iterator for PrivateKeysIter {
}
}

/// Iterator over the public keys in the `.ssh` directory.
/// Iterator over the public keys in the `~/.ssh` directory.
pub struct PublicKeysIter {
read_dir: ReadDir,
}
Expand Down

0 comments on commit 4aba4cb

Please sign in to comment.