From 66595dc371711f6d7e5a3b3120b59ac8c279ea84 Mon Sep 17 00:00:00 2001 From: Cameron Bytheway Date: Thu, 8 Jun 2023 10:25:30 -0600 Subject: [PATCH] docs: fix typos --- .gitignore | 2 ++ quic/s2n-quic-core/src/stream/id.rs | 4 ++-- scripts/perf/README.md | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a23772c5b6..ab41634c3d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ Cargo.lock .DS_Store /.idea dhat-heap.json +flamegraph.svg +perf.data* diff --git a/quic/s2n-quic-core/src/stream/id.rs b/quic/s2n-quic-core/src/stream/id.rs index 6a2f3ec68f..79f9054604 100644 --- a/quic/s2n-quic-core/src/stream/id.rs +++ b/quic/s2n-quic-core/src/stream/id.rs @@ -59,7 +59,7 @@ impl StreamId { /// assert_eq!(3u64, stream_id.as_varint().as_u64()); /// ``` #[inline] - pub fn initial(initator: endpoint::Type, stream_type: StreamType) -> StreamId { + pub fn initial(initiator: endpoint::Type, stream_type: StreamType) -> StreamId { //= https://www.rfc-editor.org/rfc/rfc9000#section-2.1 //# The two least significant bits from a stream ID therefore identify a //# stream as one of four types, as summarized in Table 1. @@ -78,7 +78,7 @@ impl StreamId { match ( stream_type == StreamType::Bidirectional, - initator == endpoint::Type::Client, + initiator == endpoint::Type::Client, ) { (true, true) => StreamId(VarInt::from_u32(0)), (true, false) => StreamId(VarInt::from_u32(1)), diff --git a/scripts/perf/README.md b/scripts/perf/README.md index d86330bd87..3594e3a129 100644 --- a/scripts/perf/README.md +++ b/scripts/perf/README.md @@ -10,7 +10,7 @@ ./scripts/perf/run ``` -## Generating a flamegraph with a specific downoad and upload size +## Generating a flamegraph with a specific download and upload size ```bash ./scripts/perf/run 123 456