Skip to content

Commit f9f2953

Browse files
authored
fix: typos in s2n-quic (#3052)
1 parent 205a786 commit f9f2953

18 files changed

Lines changed: 26 additions & 26 deletions

File tree

examples/dos-mitigation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub mod slowloris {
6767
/// Implement `on_supervisor_timeout` to define what action should be taken on the connection
6868
/// when the `supervisor_timeout` expires. For this example, the connection will be closed
6969
/// immediately (`supervisor::Outcome::ImmediateClose`) if the number of open connections
70-
/// is greater than `CONNECTION_COUNT_THRESHOLD` and the the throughput of the connection
70+
/// is greater than `CONNECTION_COUNT_THRESHOLD` and the throughput of the connection
7171
/// since the last `supervisor_timeout` has dropped below `MIN_THROUGHPUT`.
7272
fn on_supervisor_timeout(
7373
&mut self,

quic/s2n-quic-core/src/connection/id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ pub trait Generator {
393393
None
394394
}
395395

396-
/// If true (default), the connection ID used during the the handshake
396+
/// If true (default), the connection ID used during the handshake
397397
/// will be requested to be retired following confirmation of the handshake
398398
/// completing. This reduces linkability between information exchanged
399399
/// during and after the handshake.

quic/s2n-quic-core/src/crypto/application/keyset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<K: OneRttKey> KeySet<K> {
106106
self.key_derivation_timer.is_armed()
107107
}
108108

109-
/// Passes the key for the the requested phase to a callback function. Integrity limits are
109+
/// Passes the key for the requested phase to a callback function. Integrity limits are
110110
/// enforced.
111111
///
112112
/// Returns the decrypted packet and generation if the key phase was rotated.

quic/s2n-quic-qns/src/xdp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl Xdp {
263263
}
264264

265265
// we want this future to go until the end of the program so we can keep the BPF
266-
// program active on the the NIC.
266+
// program active on the NIC.
267267
core::future::pending::<()>().await;
268268

269269
// retain the bpf program for the duration of execution

quic/s2n-quic-rustls/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct Client {
2525
impl Client {
2626
/// Build a Client using a custom [rustls::ClientConfig]
2727
///
28-
/// In addition to necessary configuration, the applications is responsible for correctly
28+
/// In addition to necessary configuration, the application is responsible for correctly
2929
/// setting:
3030
/// - QUIC compliant application_protocol
3131
/// - QUIC compliant TLS protocol version

quic/s2n-quic-rustls/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Server {
2424
impl Server {
2525
/// Build a Server using a custom [rustls::ServerConfig]
2626
///
27-
/// In addition to necessary configuration, the applications is responsible for correctly
27+
/// In addition to necessary configuration, the application is responsible for correctly
2828
/// setting:
2929
/// - QUIC compliant application_protocol
3030
/// - QUIC compliant TLS protocol version

quic/s2n-quic-tls/src/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl tls::Session for Session {
155155

156156
unsafe {
157157
// Safety: the callback struct must live as long as the callbacks are
158-
// set on on the connection
158+
// set on the connection
159159
callback.set(&mut self.connection);
160160
}
161161

@@ -209,7 +209,7 @@ impl tls::Session for Session {
209209

210210
unsafe {
211211
// Safety: the callback struct must live as long as the callbacks are
212-
// set on on the connection
212+
// set on the connection
213213
callback.set(&mut self.connection);
214214
}
215215

quic/s2n-quic-transport/src/connection/connection_container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<C: connection::Trait, L: connection::Lock<C>> ConnectionNode<C, L> {
122122
/// This method is only safe to be called if the `ConnectionNode` is known to be
123123
/// stored inside a `Arc`.
124124
unsafe fn arc_from_ref(&self) -> Arc<Self> {
125-
// In order to be able to to get a `Arc` we construct a temporary `Arc`
125+
// In order to be able to get a `Arc` we construct a temporary `Arc`
126126
// from it using the `Arc::from_raw` API and clone the `Arc`.
127127
// The temporary `Arc` must be released without calling `drop`,
128128
// because this would decrement and thereby invalidate the refcount

quic/s2n-quic-transport/src/connection/local_id_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub struct LocalIdRegistry {
8686
transmission_interest: Memo<transmission::Interest, RegisteredIds>,
8787
/// Memoized query to track the number of active CIDs
8888
active_id_count: Memo<u8, RegisteredIds>,
89-
/// If true, the connection ID used during the the handshake will be requested
89+
/// If true, the connection ID used during the handshake will be requested
9090
/// to be retired following confirmation of the handshake completing.
9191
rotate_handshake_connection_id: bool,
9292
}

quic/s2n-quic-transport/src/connection/peer_id_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub struct PeerIdRegistry {
6565
ack_interest: Memo<bool, RegisteredIds>,
6666
/// Memoized query to track if there is any transmission interest
6767
transmission_interest: Memo<transmission::Interest, RegisteredIds>,
68-
/// If true, the connection ID used during the the handshake will be retired
68+
/// If true, the connection ID used during the handshake will be retired
6969
/// when the peer sends a NEW_CONNECTION_ID frame.
7070
rotate_handshake_connection_id: bool,
7171
}

0 commit comments

Comments
 (0)