Skip to content

Commit 83fd7fb

Browse files
committed
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.
1 parent 4e9f3f9 commit 83fd7fb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/posix/tty.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@ fn close(fd: RawFd) {
5151
/// use serialport::{TTYPort, SerialPort};
5252
///
5353
/// let (mut master, mut slave) = TTYPort::pair().expect("Unable to create ptty pair");
54-
///
5554
/// # let _ = &mut master;
5655
/// # let _ = &mut slave;
57-
///
5856
/// // ... elsewhere
59-
///
6057
/// let mut port = TTYPort::open(&serialport::new(slave.name().unwrap(), 0)).expect("Unable to open");
61-
///
6258
/// # let _ = &mut port;
6359
/// ```
6460
#[derive(Debug)]

0 commit comments

Comments
 (0)