diff options
Diffstat (limited to 'guide/src/chapter_00.md')
-rw-r--r-- | guide/src/chapter_00.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guide/src/chapter_00.md b/guide/src/chapter_00.md index fafa17f9..e4967939 100644 --- a/guide/src/chapter_00.md +++ b/guide/src/chapter_00.md @@ -57,7 +57,7 @@ your favorite editor, and enter: extern crate sequoia_openpgp as openpgp; use std::io; -fn main() { +fn main() -> openpgp::Result<()> { let mut reader = openpgp::armor::Reader::from_bytes( b"-----BEGIN PGP ARMORED FILE----- @@ -65,7 +65,9 @@ fn main() { =XLsG -----END PGP ARMORED FILE-----", None); - io::copy(&mut reader, &mut io::stdout()).unwrap(); + io::copy(&mut reader, &mut io::stdout())?; + + Ok(()) } ``` |