summaryrefslogtreecommitdiffstats
path: root/openpgp/src/tpk
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-18 12:28:02 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-18 12:28:02 +0100
commit8631cbea8b0cc9e4b48e3347f835cf4c8b65916f (patch)
tree107b528addac2886eb8efedf56cce2b36fe58a0b /openpgp/src/tpk
parent233d9ee618de5639983f05d2deeef8354fa1d4bd (diff)
openpgp: Fix documentation.
- Fixes #222.
Diffstat (limited to 'openpgp/src/tpk')
-rw-r--r--openpgp/src/tpk/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/tpk/mod.rs b/openpgp/src/tpk/mod.rs
index 394f9922..20638577 100644
--- a/openpgp/src/tpk/mod.rs
+++ b/openpgp/src/tpk/mod.rs
@@ -861,7 +861,7 @@ pub struct UnknownBinding {
/// An iterator over all `Key`s (both the primary key and any subkeys)
/// in a TPK.
///
-/// Returned by TPK::keys().
+/// Returned by `TPK::keys_all()` and `TPK::keys_valid()`.
///
/// `KeyIter` follows the builder pattern. There is no need to
/// explicitly finalize it, however: it already implements the
@@ -2003,7 +2003,7 @@ impl TPK {
///
/// A valid `Key` has at least one good self-signature.
///
- /// To return all keys, do `keys().unfiltered()`. See the
+ /// To return all keys, do `keys_all().unfiltered()`. See the
/// documentation of `keys` for how to control what keys are
/// returned.
pub fn keys_valid(&self) -> KeyIter {