From adf4f8c76eaf4e39502aefed111bf14bc9fba8ed Mon Sep 17 00:00:00 2001 From: Sijie Yang Date: Tue, 5 Nov 2024 00:25:24 +0000 Subject: [PATCH] Fix the typos detected by the latest typo-cli --- CHANGELOG.md | 2 +- include/tquic.h | 2 +- src/connection/connection.rs | 6 +++--- src/connection/stream.rs | 2 +- src/endpoint.rs | 2 +- src/ffi.rs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc934cb..71866fb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -165,7 +165,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix the issue where bbr3 cannot exit slow start due to high packet loss rate ### Security -- Limit memory consuption for tracking closed stream ids +- Limit memory consumption for tracking closed stream ids ## [v0.9.0] - 2024-04-10 diff --git a/include/tquic.h b/include/tquic.h index f155b497..992cb6af 100644 --- a/include/tquic.h +++ b/include/tquic.h @@ -1223,7 +1223,7 @@ ssize_t quic_stream_write(struct quic_conn_t *conn, * Create a new quic stream with the given id and priority. * This is a low-level API for stream creation. It is recommended to use * `quic_stream_bidi_new` for bidirectional streams or `quic_stream_uni_new` - * for unidrectional streams. + * for undirectional streams. */ int quic_stream_new(struct quic_conn_t *conn, uint64_t stream_id, diff --git a/src/connection/connection.rs b/src/connection/connection.rs index 08efa977..7f3c7af0 100644 --- a/src/connection/connection.rs +++ b/src/connection/connection.rs @@ -2032,7 +2032,7 @@ impl Connection { Ok(()) } - /// Write PATH_RESPONSE/PATH_CHALLENGE frams if needed. + /// Write PATH_RESPONSE/PATH_CHALLENGE frames if needed. fn try_write_path_validation_frames( &mut self, out: &mut [u8], @@ -3885,7 +3885,7 @@ impl Connection { /// Create a new stream with given stream id and priority. /// This is a low-level API for stream creation. It is recommended to use /// `stream_bidi_new` for bidirectional streams or `stream_uni_new` for - /// unidrectional streams. + /// undirectional streams. pub fn stream_new(&mut self, stream_id: u64, urgency: u8, incremental: bool) -> Result<()> { self.stream_set_priority(stream_id, urgency, incremental) } @@ -3897,7 +3897,7 @@ impl Connection { self.streams.stream_bidi_new(urgency, incremental) } - /// Create a new unidrectional stream with given stream priority. + /// Create a new undirectional stream with given stream priority. /// Return id of the created stream upon success. pub fn stream_uni_new(&mut self, urgency: u8, incremental: bool) -> Result { self.mark_tickable(true); diff --git a/src/connection/stream.rs b/src/connection/stream.rs index e267bf7f..0043d22e 100644 --- a/src/connection/stream.rs +++ b/src/connection/stream.rs @@ -214,7 +214,7 @@ impl StreamMap { } } - /// Create a new unidrectional stream with given stream priority. + /// Create a new undirectional stream with given stream priority. /// Return id of the created stream upon success. pub fn stream_uni_new(&mut self, urgency: u8, incremental: bool) -> Result { let stream_id = self.next_stream_id_uni; diff --git a/src/endpoint.rs b/src/endpoint.rs index 8d49b6b2..1dc5035e 100644 --- a/src/endpoint.rs +++ b/src/endpoint.rs @@ -97,7 +97,7 @@ pub struct Endpoint { /// The endpoint is shutdown. closed: bool, - /// The unique trace id for the enpdoint + /// The unique trace id for the endpoint trace_id: String, } diff --git a/src/ffi.rs b/src/ffi.rs index 935b1a41..d9665a39 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -1516,7 +1516,7 @@ pub extern "C" fn quic_stream_write( /// Create a new quic stream with the given id and priority. /// This is a low-level API for stream creation. It is recommended to use /// `quic_stream_bidi_new` for bidirectional streams or `quic_stream_uni_new` -/// for unidrectional streams. +/// for undirectional streams. #[no_mangle] pub extern "C" fn quic_stream_new( conn: &mut Connection,