Skip to content

Commit

Permalink
Try #99:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Aug 17, 2023
2 parents 52edda7 + be7fb7e commit 330dfcb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,6 @@ impl DerefMut for PtySession {
}

/// Start a process in a tty session, write and read from it
///
/// # Example
///
/// ```
///
/// use rexpect::spawn;
/// # use rexpect::error::Error;
///
/// # fn main() {
/// # || -> Result<(), Error> {
/// let mut s = spawn("cat", Some(1000))?;
/// s.send_line("hello, polly!")?;
/// let line = s.read_line()?;
/// assert_eq!("hello, polly!", line);
/// # Ok(())
/// # }().expect("test failed");
/// # }
/// ```
impl PtySession {
fn new(process: PtyProcess, timeout_ms: Option<u64>) -> Result<Self, Error> {
let f = process.get_file_handle()?;
Expand Down

0 comments on commit 330dfcb

Please sign in to comment.