Skip to content

Commit ff93c96

Browse files
committed
Fix a doctest for overssh.
Signed-off-by: Aalekh Patel <[email protected]>
1 parent c4fdb23 commit ff93c96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/command.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ pub trait OverSsh {
103103
/// let session = Session::connect_mux("[email protected]", KnownHosts::Strict).await?;
104104
/// let echo =
105105
/// Command::new("echo")
106+
/// .env("MY_ENV_VAR", "foo")
106107
/// .arg("$MY_ENV_VAR")
107108
/// .over_ssh(&session);
108-
/// assert_matches!(echo, Err(openssh::Error::CommandHasEnv));
109+
/// assert!(matches!(echo, Err(openssh::Error::CommandHasEnv)));
109110
///
110111
/// # Ok(())
111112
/// }

0 commit comments

Comments
 (0)