Explorar el Código

Merge pull request #430 from dnadlinger/patch-1

socket/tcp: Fix is_active comment typo
Dario Nieuwenhuis hace 4 años
padre
commit
4bbb431bf9
Se han modificado 1 ficheros con 1 adiciones y 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 {