File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ enum LengthFormat {
390390}
391391
392392impl 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 {
You can’t perform that action at this time.
0 commit comments