Skip to content

Commit

Permalink
Trivial update src/handshake/machine.rs
Browse files Browse the repository at this point in the history
Comment rewording.

Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
  • Loading branch information
agalakhov and daniel-abramov authored Sep 22, 2023
1 parent 61b9b4d commit a503919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handshake/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ impl AttackCheck {
AttackCheck { number_of_packets: 0, number_of_bytes: 0 }
}

/// Check size of incoming packet. To be called immediately after `read()`
/// passing its return bytes count as `size`.
/// Check the size of an incoming packet. To be called immediately after `read()`
/// passing its returned bytes count as `size`.
fn check_incoming_packet_size(&mut self, size: usize) -> Result<()> {
self.number_of_packets += 1;
self.number_of_bytes += size;
Expand Down

0 comments on commit a503919

Please sign in to comment.