From c8ca80f67ec506df7f575bd34bdcdce97072d134 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 12 Aug 2022 09:44:49 -0700 Subject: [PATCH] pty: fix doc example --- pty/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>(()) //! ``` //!