We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b9602 commit 5966ae4Copy full SHA for 5966ae4
prost/src/encoding/length_delimiter.rs
@@ -40,7 +40,7 @@ pub fn length_delimiter_len(length: usize) -> usize {
40
///
41
/// * If the supplied buffer contains fewer than 10 bytes, then an error indicates that more
42
/// input is required to decode the full delimiter.
43
-/// * If the supplied buffer contains more than 10 bytes, then the buffer contains an invalid
+/// * If the supplied buffer contains 10 bytes or more, then the buffer contains an invalid
44
/// delimiter, and typically the buffer should be considered corrupt.
45
pub fn decode_length_delimiter(mut buf: impl Buf) -> Result<usize, DecodeError> {
46
let length = decode_varint(&mut buf)?;
0 commit comments