Skip to content

Commit c86a7a0

Browse files
committed
Mention redox' behavior in doc comments
1 parent 4bebd24 commit c86a7a0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/libstd/sys/redox/ext/net.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ impl UnixStream {
197197
/// println!("Got error: {:?}", err);
198198
/// }
199199
/// ```
200+
///
201+
/// # Platform specific
202+
/// On Redox this always returns None.
200203
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
201204
Ok(None)
202205
}
@@ -400,6 +403,9 @@ impl UnixListener {
400403
/// println!("Got error: {:?}", err);
401404
/// }
402405
/// ```
406+
///
407+
/// # Platform specific
408+
/// On Redox this always returns None.
403409
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
404410
Ok(None)
405411
}

src/libstd/sys/unix/ext/net.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@ impl UnixStream {
524524
/// println!("Got error: {:?}", err);
525525
/// }
526526
/// ```
527+
///
528+
/// # Platform specific
529+
/// On Redox this always returns None.
527530
#[stable(feature = "unix_socket", since = "1.10.0")]
528531
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
529532
self.0.take_error()
@@ -846,6 +849,9 @@ impl UnixListener {
846849
/// println!("Got error: {:?}", err);
847850
/// }
848851
/// ```
852+
///
853+
/// # Platform specific
854+
/// On Redox this always returns None.
849855
#[stable(feature = "unix_socket", since = "1.10.0")]
850856
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
851857
self.0.take_error()

0 commit comments

Comments
 (0)