Skip to content

Commit

Permalink
Streamline and clean up spacing in TTYPort example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sirhcel committed May 6, 2024
1 parent 4e9f3f9 commit 83fd7fb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/posix/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 83fd7fb

Please sign in to comment.