Skip to content

Commit 9a4fff4

Browse files
Merge pull request #207 from teymour-aldridge/patch-1
Fix a typo in a docstring
2 parents 141a03d + 94aef58 commit 9a4fff4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/protocol/frame/frame.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ enum LengthFormat {
390390
}
391391

392392
impl LengthFormat {
393-
/// Get length format for a given data size.
393+
/// Get the length format for a given data size.
394394
#[inline]
395395
fn for_length(length: u64) -> Self {
396396
if length < 126 {
@@ -402,7 +402,7 @@ impl LengthFormat {
402402
}
403403
}
404404

405-
/// Get the size of length encoding.
405+
/// Get the size of the length encoding.
406406
#[inline]
407407
fn extra_bytes(&self) -> usize {
408408
match *self {
@@ -412,7 +412,7 @@ impl LengthFormat {
412412
}
413413
}
414414

415-
/// Encode the givem length.
415+
/// Encode the given length.
416416
#[inline]
417417
fn length_byte(&self) -> u8 {
418418
match *self {
@@ -422,7 +422,7 @@ impl LengthFormat {
422422
}
423423
}
424424

425-
/// Get length format for a given length byte.
425+
/// Get the length format for a given length byte.
426426
#[inline]
427427
fn for_byte(byte: u8) -> Self {
428428
match byte & 0x7F {

0 commit comments

Comments
 (0)