Skip to content

Commit

Permalink
fix comment format, uppercase the first word
Browse files Browse the repository at this point in the history
  • Loading branch information
ColorFuzzy committed Feb 21, 2025
1 parent fb397f2 commit 7dddb82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/remote/src/ssh_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl SshConnectionOptions {
anyhow::bail!("unsupported argument: {:?}", arg);
}
let mut input = &arg as &str;
// destination might be: username1@username2@ip2@ip1
// Destination might be: username1@username2@ip2@ip1
if let Some((u, rest)) = input.rsplit_once('@') {
input = rest;
username = Some(u.to_string());
Expand Down Expand Up @@ -238,7 +238,7 @@ impl SshConnectionOptions {
pub fn ssh_url(&self) -> String {
let mut result = String::from("ssh://");
if let Some(username) = &self.username {
// username might be: username1@username2@ip2
// Username might be: username1@username2@ip2
let username = username.replace("@", "%40");
result.push_str(&username);
result.push('@');
Expand Down

0 comments on commit 7dddb82

Please sign in to comment.