Explorar o código

socket/tcp: Fix is_active comment typo

David Nadlinger %!s(int64=4) %!d(string=hai) anos
pai
achega
6316b89da8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/socket/tcp.rs

+ 1 - 1
src/socket/tcp.rs

@@ -752,7 +752,7 @@ impl<'a> TcpSocket<'a> {
     /// If a connection is established, [abort](#method.close) will send a reset to
     /// the remote endpoint.
     ///
-    /// In terms of the TCP state machine, the socket must be in the `CLOSED`, `TIME-WAIT`,
+    /// In terms of the TCP state machine, the socket must not be in the `CLOSED`, `TIME-WAIT`,
     /// or `LISTEN` state.
     #[inline]
     pub fn is_active(&self) -> bool {