From 777e15b5b206f7c0fec6769a68bb51d68e5eb62f Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Mon, 6 May 2024 17:47:56 +0200 Subject: [PATCH] Streamline and clean up spacing in TTYPort example Let's have more compact example and don't let an empty line slip in the rendered example due to the empty lines before and after using 'master' and 'slave' not being merged. --- src/posix/tty.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/posix/tty.rs b/src/posix/tty.rs index c10ee9d1..b1d68cff 100644 --- a/src/posix/tty.rs +++ b/src/posix/tty.rs @@ -51,14 +51,10 @@ fn close(fd: RawFd) { /// use serialport::{TTYPort, SerialPort}; /// /// let (mut master, mut slave) = TTYPort::pair().expect("Unable to create ptty pair"); -/// /// # let _ = &mut master; /// # let _ = &mut slave; -/// /// // ... elsewhere -/// /// let mut port = TTYPort::open(&serialport::new(slave.name().unwrap(), 0)).expect("Unable to open"); -/// /// # let _ = &mut port; /// ``` #[derive(Debug)]