Skip to content

Commit

Permalink
Fix spelling mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei0800 committed Jan 16, 2025
1 parent 8ce141f commit 521ff7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/connection/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ impl Recovery {
space.lost.clear();
space.acked.clear();

// Reset loss dection timer
// Reset loss detection timer
space.time_of_last_sent_ack_eliciting_pkt = None;
space.loss_time = None;
space.loss_probes = 0;
Expand Down
8 changes: 4 additions & 4 deletions src/connection/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4731,7 +4731,7 @@ mod tests {
// write empty data with fin flag, it should be ok.
assert_eq!(stream.send.write(Bytes::new(), true), Ok(0));

// Shutdown the stream abrubtly, it should be ok.
// Shutdown the stream abruptly, it should be ok.
assert_eq!(stream.send.shutdown(), Ok((0, 18)));
// Here we call `write` to make sure the stream's fin_off is set.
assert_eq!(stream.recv.write(0, Bytes::new(), true), Ok(()));
Expand Down Expand Up @@ -4939,7 +4939,7 @@ mod tests {
assert_eq!(map.get(20).unwrap().recv.fin_off, Some(30));

// 10. Receive a RESET_STREAM frame for a stream which has been closed.
// Shutdown the stream abrubtly, it should be ok.
// Shutdown the stream abruptly, it should be ok.
let stream = map.get_or_create(24, false).unwrap();
assert_eq!(stream.send.shutdown(), Ok((0, 0)));
// Here we call `write` to make sure the stream's fin_off is set.
Expand Down Expand Up @@ -5064,7 +5064,7 @@ mod tests {
assert_eq!(map.on_stop_sending_frame_received(4, 0), Ok(()));

// 5. Receive a STOP_SENDING frame for a stream which has been closed.
// Shutdown the stream abrubtly, it should be ok.
// Shutdown the stream abruptly, it should be ok.
let stream = map.get_or_create(24, false).unwrap();
assert_eq!(stream.send.shutdown(), Ok((0, 0)));
// Here we call `write` to make sure the stream's fin_off is set.
Expand Down Expand Up @@ -5134,7 +5134,7 @@ mod tests {
assert_eq!(map.on_stop_sending_frame_received(5, 0), Ok(()));

// 5. Receive a STOP_SENDING frame for a stream which has been closed.
// Shutdown the stream abrubtly, it should be ok.
// Shutdown the stream abruptly, it should be ok.
let stream = map.get_or_create(25, false).unwrap();
assert_eq!(stream.send.shutdown(), Ok((0, 0)));
// Here we call `write` to make sure the stream's fin_off is set.
Expand Down
2 changes: 1 addition & 1 deletion src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ fn encrypt_header(
/// Decrypt payload of a QUIC packet.
///
/// The `pkt_buf` is the raw data of a QUIC packet.
/// The `paylaod_offset` is the offset of packet payload in `pkt_buf`.
/// The `payload_offset` is the offset of packet payload in `pkt_buf`.
/// The `payload_len` is the length of pacekt payload (other than the value of Length field).
/// The `pkt_num` is the decrypted and decoded packet number.
#[allow(unexpected_cfgs)]
Expand Down

0 comments on commit 521ff7e

Please sign in to comment.