From e9b999e2dd1950daab2b1405dccd9a99d5e8ffae Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Thu, 23 Jul 2026 22:12:29 +0200 Subject: [PATCH] protocol: Calm `typos` The `typos` spell-checker complains about "[T]ype" and "[I]nitiator". Reformulate the comment to work around the issue. --- crates/radicle-protocol/src/wire/frame.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/radicle-protocol/src/wire/frame.rs b/crates/radicle-protocol/src/wire/frame.rs index 78b11cc9d..387b385ed 100644 --- a/crates/radicle-protocol/src/wire/frame.rs +++ b/crates/radicle-protocol/src/wire/frame.rs @@ -189,11 +189,16 @@ impl From for u8 { /// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ /// | 'r' | 'a' | 'd' | 0x1 | Version /// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -/// | Stream ID |TTT|I| Stream ID with Stream [T]ype and [I]nitiator bits +/// | |T T T I| Stream ID /// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -/// | Data …| Data (variable size) +/// | …| Data (variable size) /// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ /// ``` +/// +/// Note that the last four bits of the Stream ID encode the Stream Type +/// and Initiator. +/// The first three bits of the last four bits encode the Stream Type, +/// while the last bit encodes the Initiator. #[derive(Debug, PartialEq, Eq)] pub struct Frame { /// The protocol version.