summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types/timestamp.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-08-19 11:31:42 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-08-19 11:58:47 +0200
commit935734bf148efcaa69496bfe41c6f53907c5066f (patch)
tree39c6d082acfb7f62d28079df7a6bd59bc56d55c2 /openpgp/src/types/timestamp.rs
parentee55b20057fbcc2b77bb5c51f4915f9f785b200b (diff)
openpgp: Rename SubpacketArea::lookup to SubpacketArea::subpacket.
- Make `SubpacketArea::lookup`'s name more consistent with `SubpacketArea::subpackets`, `SubpacketAreas::subpacket`, and `SubpacketAreas::subpackets`.
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r--openpgp/src/types/timestamp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs
index 95cfbfe8..8114df53 100644
--- a/openpgp/src/types/timestamp.rs
+++ b/openpgp/src/types/timestamp.rs
@@ -47,7 +47,7 @@ use crate::{
/// let subkey = cert.keys().subkeys().next().unwrap();
/// let packets = subkey.bundle().self_signatures()[0].hashed_area();
///
-/// match packets.lookup(SubpacketTag::SignatureCreationTime).unwrap().value() {
+/// match packets.subpacket(SubpacketTag::SignatureCreationTime).unwrap().value() {
/// SubpacketValue::SignatureCreationTime(ts) => assert!(u32::from(*ts) > 0),
/// v => panic!("Unexpected subpacket: {:?}", v),
/// }