Skip to content

Commit

Permalink
manually merge changes from #30
Browse files Browse the repository at this point in the history
  • Loading branch information
estokes committed Dec 31, 2024
1 parent 54e124a commit 7d94933
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ impl SerialStream {
/// Attempting any IO or parameter settings on the slave tty after the master
/// tty is closed will return errors.
///
/// ## Examples
///
/// ```rust
/// use tokio_serial::Serial;
///
/// #[tokio::main]
/// async fn main() {
/// let (master, slave) = Serial::pair().unwrap();
/// }
/// ```
#[cfg(unix)]
pub fn pair() -> crate::Result<(Self, Self)> {
let (master, slave) = mio_serial::SerialStream::pair()?;
Expand Down

0 comments on commit 7d94933

Please sign in to comment.