protocol: Calm typos

The `typos` spell-checker complains about "[T]ype" and "[I]nitiator".

Reformulate the comment to work around the issue.
This commit is contained in:
Lorenz Leutgeb
2026-07-23 22:13:56 +02:00
parent 474b7f3693
commit e9b999e2dd
+7 -2
View File
@@ -189,11 +189,16 @@ impl From<StreamType> for u8 {
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ /// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/// | 'r' | 'a' | 'd' | 0x1 | Version /// | '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)] #[derive(Debug, PartialEq, Eq)]
pub struct Frame<M = Message> { pub struct Frame<M = Message> {
/// The protocol version. /// The protocol version.