mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
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:
@@ -189,11 +189,16 @@ impl From<StreamType> 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<M = Message> {
|
||||
/// The protocol version.
|
||||
|
||||
Reference in New Issue
Block a user