Skip to content

Commit c0fa5b9

Browse files
committed
Fix the confusing doc on process_impl::Session
Signed-off-by: Jiahao XU <[email protected]>
1 parent 1cb0565 commit c0fa5b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/process_impl/session.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ use tokio::process;
1010

1111
use tempfile::TempDir;
1212

13-
/// Session does not have field "addr" because ssh don't care about
14-
/// the addr as long as we have the ctl.
15-
/// It is tested on OpenSSH 8.2p1, 8.9p1, 9.0p1
1613
#[derive(Debug)]
1714
pub(crate) struct Session {
1815
tempdir: Option<TempDir>,
@@ -48,6 +45,9 @@ impl Session {
4845
.arg("-o")
4946
.arg("BatchMode=yes")
5047
.args(args)
48+
// ssh does not care about the addr as long as we have passed
49+
// `-S &*self.ctl`.
50+
// It is tested on OpenSSH 8.2p1, 8.9p1, 9.0p1
5151
.arg("none");
5252
cmd
5353
}

0 commit comments

Comments
 (0)