浏览代码

tcp: clarify comment

Dario Nieuwenhuis 3 年之前
父节点
当前提交
c9bdbf3b25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/socket/tcp.rs

+ 1 - 1
src/socket/tcp.rs

@@ -1307,7 +1307,7 @@ impl<'a> TcpSocket<'a> {
             (_, TcpControl::Rst, _) => (),
             // The initial SYN cannot contain an acknowledgement.
             (State::Listen, _, None) => (),
-            // This case is handled above.
+            // This case is handled in `accepts()`.
             (State::Listen, _, Some(_)) => unreachable!(),
             // Every packet after the initial SYN must be an acknowledgement.
             (_, _, None) => {