summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-08-04 00:27:41 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-08-23 19:15:13 +0200
commit75fb008711f0f80028230018ab37b988175211b4 (patch)
treeb8b950cbed6152f4812f0943125ba6dd8647de93 /examples
parent4c6974c62591ef6698447712311edebca9546e5f (diff)
openpgp: Rename SubkeyBinding to KeyBinding.
- Also rename the `subkey` method to `key`.
Diffstat (limited to 'examples')
-rw-r--r--examples/guide-exploring-openpgp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs
index c8e51e9b..c5aba0dc 100644
--- a/examples/guide-exploring-openpgp.rs
+++ b/examples/guide-exploring-openpgp.rs
@@ -62,7 +62,7 @@ fn main() {
// List subkeys.
for (i, s) in tpk.subkeys().enumerate() {
println!("{}: Fingerprint: {}, {} self-signature(s), {} certification(s)",
- i, s.subkey().fingerprint(),
+ i, s.key().fingerprint(),
s.selfsigs().len(),
s.certifications().len());
}