From 7dddb82a75f55ff5284c3492a365effa68957a4d Mon Sep 17 00:00:00 2001 From: "color.fuzzy" Date: Fri, 21 Feb 2025 18:24:57 +0800 Subject: [PATCH] fix comment format, uppercase the first word --- crates/remote/src/ssh_session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs index b833dcdfb0c5e5..a0aebc15046662 100644 --- a/crates/remote/src/ssh_session.rs +++ b/crates/remote/src/ssh_session.rs @@ -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()); @@ -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('@');