summaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
Diffstat (limited to 'guide')
-rw-r--r--guide/src/chapter_03.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guide/src/chapter_03.md b/guide/src/chapter_03.md
index d661f7b9..19a42147 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 Ok(mut pp) = ppr {
+ while let PacketParserResult::Some(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.