summaryrefslogtreecommitdiffstats
path: root/openpgp/src/armor.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-08-24 10:33:28 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-08-24 10:46:54 +0200
commit576cffeac8bd9ffd4ac7b1c4a9b5c8714a227b7b (patch)
treebd7220edd6f8992a374e3bcd461e7aa107c3e793 /openpgp/src/armor.rs
parent4a89c04d9b93a9f3e6140fead7955a53ade151f1 (diff)
openpgp: Make struct Literal opaque, add getters and setters.
- See #57.
Diffstat (limited to 'openpgp/src/armor.rs')
-rw-r--r--openpgp/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index 6a09cc2b..4a82355b 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -369,7 +369,7 @@ impl<'a> Reader<'a> {
/// reader.read_to_end(&mut buf)?;
///
/// let message = Message::from_bytes(&buf)?;
- /// assert_eq!(message.body().unwrap().common.body.as_ref().unwrap(),
+ /// assert_eq!(message.body().unwrap().body().unwrap(),
/// b"Hello world!");
/// # Ok(())
/// # }