diff options
Diffstat (limited to 'guide/src/chapter_03.md')
-rw-r--r-- | guide/src/chapter_03.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guide/src/chapter_03.md b/guide/src/chapter_03.md index 19a42147..d661f7b9 100644 --- a/guide/src/chapter_03.md +++ b/guide/src/chapter_03.md @@ -201,7 +201,7 @@ fn main() { let mut buf = vec![0; 1024 * 1024]; let mut ppr = PacketParser::from_bytes(MESSAGE.as_bytes()).unwrap(); - while let PacketParserResult::Some(mut pp) = ppr { + while let Ok(mut pp) = ppr { // Match on the kind of packet here while it is in the parser. if let openpgp::Packet::Literal(_) = pp.packet { // Stream the content of the literal packet. |