diff --git a/pty/src/lib.rs b/pty/src/lib.rs index eb096073b..0b54824e8 100644 --- a/pty/src/lib.rs +++ b/pty/src/lib.rs @@ -33,7 +33,7 @@ //! let mut reader = pair.master.try_clone_reader()?; //! //! // Send data to the pty by writing to the master -//! writeln!(pair.master, "ls -l\r\n")?; +//! writeln!(pair.master.take_writer()?, "ls -l\r\n")?; //! # Ok::<(), Error>(()) //! ``` //!