diff --git a/examples/tcp_client.rs b/examples/tcp_client.rs index b95fd11..809a84a 100644 --- a/examples/tcp_client.rs +++ b/examples/tcp_client.rs @@ -1,3 +1,4 @@ +#![cfg(any(target_os = "linux", target_os = "windows"))] use std::io; #[cfg(target_os = "linux")] diff --git a/src/lib.rs b/src/lib.rs index 9c017ce..aed06be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -343,10 +343,9 @@ impl Event { /// # Examples /// /// ``` - ///use std::io; /// ///#[cfg(target_os = "linux")] - ///fn main() -> io::Result<()> { + ///fn main() -> std::io::Result<()> { /// use std::net; /// use std::{io::Write, time::Duration}; ///