diff --git a/draft-ietf-quic-recovery.md b/draft-ietf-quic-recovery.md index 421ba2f4f0..f50e92c5b5 100644 --- a/draft-ietf-quic-recovery.md +++ b/draft-ietf-quic-recovery.md @@ -1092,11 +1092,11 @@ OnAckReceived(ack, pn_space): // If the largest acknowledged is newly acked and // at least one ack-eliciting was newly acked, update the RTT. if (sent_packets[pn_space][ack.largest_acked] && - IncludesAckEliciting(newly_acked_packets)) + IncludesAckEliciting(newly_acked_packets)): latest_rtt = now - sent_packets[pn_space][ack.largest_acked].time_sent ack_delay = 0 - if pn_space == ApplicationData: + if (pn_space == ApplicationData): ack_delay = ack.ack_delay UpdateRtt(ack_delay) @@ -1176,8 +1176,8 @@ GetEarliestLossTime(): time = loss_time[Initial] space = Initial for pn_space in [ Handshake, ApplicationData ]: - if loss_time[pn_space] != 0 && - (time == 0 || loss_time[pn_space] < time): + if (loss_time[pn_space] != 0 && + (time == 0 || loss_time[pn_space] < time)): time = loss_time[pn_space]; space = pn_space return time, space @@ -1401,7 +1401,7 @@ acked_packet from sent_packets. if (InCongestionRecovery(acked_packet.time_sent)): // Do not increase congestion window in recovery period. return - if (IsAppLimited()) + if (IsAppLimited()): // Do not increase congestion_window if application // limited. return