From 94aef58646c117a28754d24de3aa905679a1e457 Mon Sep 17 00:00:00 2001 From: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com> Date: Mon, 24 May 2021 16:09:33 +0100 Subject: [PATCH] Fix a typo in a docstring --- src/protocol/frame/frame.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/protocol/frame/frame.rs b/src/protocol/frame/frame.rs index 986bba0..a116489 100644 --- a/src/protocol/frame/frame.rs +++ b/src/protocol/frame/frame.rs @@ -390,7 +390,7 @@ enum LengthFormat { } impl LengthFormat { - /// Get length format for a given data size. + /// Get the length format for a given data size. #[inline] fn for_length(length: u64) -> Self { if length < 126 { @@ -402,7 +402,7 @@ impl LengthFormat { } } - /// Get the size of length encoding. + /// Get the size of the length encoding. #[inline] fn extra_bytes(&self) -> usize { match *self { @@ -412,7 +412,7 @@ impl LengthFormat { } } - /// Encode the givem length. + /// Encode the given length. #[inline] fn length_byte(&self) -> u8 { match *self { @@ -422,7 +422,7 @@ impl LengthFormat { } } - /// Get length format for a given length byte. + /// Get the length format for a given length byte. #[inline] fn for_byte(byte: u8) -> Self { match byte & 0x7F {