ソースを参照

Fix a typo in documentation.

whitequark 7 年 前
コミット
43cc132459
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/socket/tcp.rs

+ 2 - 1
src/socket/tcp.rs

@@ -473,7 +473,8 @@ impl<'a> TcpSocket<'a> {
     /// packets. Note that this does not mean that it is possible to send or receive data through
     /// the socket; for that, use [can_send](#method.can_send) or [can_recv](#method.can_recv).
     ///
-    /// In terms of the TCP state machine, the socket must be in the `CLOSED` or `TIME-WAIT` state.
+    /// In terms of the TCP state machine, the socket must not be in the `CLOSED`
+    /// or `TIME-WAIT` states.
     #[inline]
     pub fn is_open(&self) -> bool {
         match self.state {