diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/redox/ext/unixsocket.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/unixsocket.rs | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/libstd/sys/redox/ext/unixsocket.rs b/src/libstd/sys/redox/ext/unixsocket.rs index be37575145a..5f7b2df8992 100644 --- a/src/libstd/sys/redox/ext/unixsocket.rs +++ b/src/libstd/sys/redox/ext/unixsocket.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![stable(feature = "unix_socket", since = "1.10.0")] - use fmt; use io::{self, Error, ErrorKind, Initializer}; use net::Shutdown; diff --git a/src/libstd/sys/unix/ext/unixsocket.rs b/src/libstd/sys/unix/ext/unixsocket.rs index 124555141a3..ad2d7019cb8 100644 --- a/src/libstd/sys/unix/ext/unixsocket.rs +++ b/src/libstd/sys/unix/ext/unixsocket.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![stable(feature = "unix_socket", since = "1.10.0")] - //! Unix-specific networking functionality #[cfg(unix)] @@ -144,20 +142,6 @@ impl<'a> fmt::Display for AsciiEscaped<'a> { } } -/// A Unix stream socket. -/// -/// # Examples -/// -/// ```no_run -/// use std::os::unix::net::UnixStream; -/// use std::io::prelude::*; -/// -/// let mut stream = UnixStream::connect("/path/to/my/socket").unwrap(); -/// stream.write_all(b"hello world").unwrap(); -/// let mut response = String::new(); -/// stream.read_to_string(&mut response).unwrap(); -/// println!("{}", response); -/// ``` #[stable(feature = "unix_socket", since = "1.10.0")] pub struct UnixStream(Socket); |
