We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ce540 commit 29e6656Copy full SHA for 29e6656
src/libstd/net/tcp.rs
@@ -177,6 +177,13 @@ impl TcpStream {
177
///
178
/// [`Shutdown`]: ../../std/net/enum.Shutdown.html
179
180
+ /// # Platform-specific behavior
181
+ ///
182
+ /// Calling this function multiple times may result in different behavior,
183
+ /// depending on the operating system. On Linux, the second call will
184
+ /// return `Ok(())`, but on macOS, it will return `ErrorKind::NotConnected`.
185
+ /// This may change in the future.
186
187
/// # Examples
188
189
/// ```no_run
0 commit comments