Fix a typo in documentation.

This commit is contained in:
whitequark 2017-09-24 08:23:46 +00:00
parent 8e13333988
commit 8db752eb7a
1 changed files with 2 additions and 1 deletions

View File

@ -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 {