net: clarify socket gets closed on drop (#7526)

This commit is contained in:
Noam Soloveichik
2025-08-11 16:26:01 +00:00
committed by GitHub
parent 9ed6f70b81
commit 131afd3c53
+2
View File
@@ -19,6 +19,8 @@ cfg_net! {
///
/// A `TcpListener` can be turned into a `Stream` with [`TcpListenerStream`].
///
/// The socket will be closed when the value is dropped.
///
/// [`TcpListenerStream`]: https://docs.rs/tokio-stream/0.1/tokio_stream/wrappers/struct.TcpListenerStream.html
///
/// # Errors