aboutsummaryrefslogtreecommitdiff
path: root/src/net/tcp/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tcp/stream.rs')
-rw-r--r--src/net/tcp/stream.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tcp/stream.rs b/src/net/tcp/stream.rs
index 86f674c..cdbd46a 100644
--- a/src/net/tcp/stream.rs
+++ b/src/net/tcp/stream.rs
@@ -7,8 +7,8 @@ use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket};
use crate::io_source::IoSource;
-use crate::{event, Interest, Registry, Token};
use crate::net::TcpSocket;
+use crate::{event, Interest, Registry, Token};
/// A non-blocking TCP stream between a local socket and a remote socket.
///
@@ -16,7 +16,8 @@ use crate::net::TcpSocket;
///
/// # Examples
///
-/// ```
+#[cfg_attr(feature = "os-poll", doc = "```")]
+#[cfg_attr(not(feature = "os-poll"), doc = "```ignore")]
/// # use std::net::{TcpListener, SocketAddr};
/// # use std::error::Error;
/// #