diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-09-25 13:16:10 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-09-25 13:18:20 +0200 |
commit | b4946353e7ef607115c743d84ced6e4bc41744e3 (patch) | |
tree | 76ed34bb1b8a2ad2bdb37fc4bfeb32a10d7d33e7 | |
parent | efc45302fb53b65ab8839a8d8aa982d857547352 (diff) |
openpgp: Fix documentation.
-rw-r--r-- | openpgp/src/packet/signature/subpacket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs index afab45bd..cbcb2df2 100644 --- a/openpgp/src/packet/signature/subpacket.rs +++ b/openpgp/src/packet/signature/subpacket.rs @@ -566,7 +566,7 @@ impl<'a> IntoIterator for &'a SubpacketArea { } impl SubpacketArea { - /// Returns a new subpacket area based on `data`. + /// Returns a new subpacket area containing the given `packets`. pub fn new(packets: Vec<Subpacket>) -> SubpacketArea { SubpacketArea { packets, @@ -797,7 +797,7 @@ impl SubpacketArea { /// sig.unhashed_area_mut().add( /// Subpacket::new( /// SubpacketValue::Issuer(KeyID::from_hex("AAAA BBBB CCCC DDDD")?), - /// false)?); + /// false)?); /// /// sig.verify_message(signer.public(), msg)?; /// # assert_eq!(sig |