summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJustus Winter <justus@pep-project.org>2017-11-03 14:34:58 +0100
committerJustus Winter <justus@pep-project.org>2017-11-21 16:43:33 +0100
commit2012a9188e3684d1db712c9b6692f44b229f4e81 (patch)
tree7208e74ce38f9e23c5347e7cb60c8808423de46b /src
parent909e126d92a5019ce01f912b7dbb3baef1344d62 (diff)
Fix comment.
- This is actually a five octet length. The first octet is already consumed at this point. Also, RFC 4880 refers to this as five octet length.
Diffstat (limited to 'src')
-rw-r--r--src/openpgp/parse/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openpgp/parse/parse.rs b/src/openpgp/parse/parse.rs
index 01463257..6cfbddc5 100644
--- a/src/openpgp/parse/parse.rs
+++ b/src/openpgp/parse/parse.rs
@@ -67,7 +67,7 @@ pub fn body_length_new_format<T: BufferedReader> (bio: &mut T)
}
assert_eq!(octet1, 255);
- // Four octets.
+ // Five octets.
return Ok(BodyLength::Full(bio.read_be_u32()?));
}