protocol: fix `Frame` docstring
The `[T]` and `[I]` are interpretted as links when running `cargo doc`. This table is surrounded in a code fence to prevent this, but also provide a better view of the table when rendered to HTML.
This commit is contained in:
parent
3c5668edd2
commit
010d5134e8
|
|
@ -184,6 +184,7 @@ impl TryFrom<u8> for StreamKind {
|
|||
|
||||
/// Protocol frame.
|
||||
///
|
||||
/// ```text
|
||||
/// 0 1 2 3
|
||||
/// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
||||
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
|
|
@ -193,6 +194,7 @@ impl TryFrom<u8> for StreamKind {
|
|||
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
/// | Data ...| Data (variable size)
|
||||
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
/// ```
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct Frame<M = Message> {
|
||||
/// The protocol version.
|
||||
|
|
|
|||
Loading…
Reference in New Issue