diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-08-04 00:27:41 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-08-23 19:15:13 +0200 |
commit | 75fb008711f0f80028230018ab37b988175211b4 (patch) | |
tree | b8b950cbed6152f4812f0943125ba6dd8647de93 /guide/src/chapter_02.md | |
parent | 4c6974c62591ef6698447712311edebca9546e5f (diff) |
openpgp: Rename SubkeyBinding to KeyBinding.
- Also rename the `subkey` method to `key`.
Diffstat (limited to 'guide/src/chapter_02.md')
-rw-r--r-- | guide/src/chapter_02.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guide/src/chapter_02.md b/guide/src/chapter_02.md index 7794436e..b6463033 100644 --- a/guide/src/chapter_02.md +++ b/guide/src/chapter_02.md @@ -119,7 +119,7 @@ fn main() { # { # // The encryption key is the first and only subkey. # let key = self.secret.subkeys().nth(0) -# .map(|binding| binding.subkey().clone()) +# .map(|binding| binding.key().clone()) # .unwrap(); # # // The secret key is not encrypted. @@ -253,7 +253,7 @@ fn generate() -> openpgp::Result<openpgp::TPK> { # { # // The encryption key is the first and only subkey. # let key = self.secret.subkeys().nth(0) -# .map(|binding| binding.subkey().clone()) +# .map(|binding| binding.key().clone()) # .unwrap(); # # // The secret key is not encrypted. @@ -387,7 +387,7 @@ fn encrypt(sink: &mut Write, plaintext: &str, recipient: &openpgp::TPK) # { # // The encryption key is the first and only subkey. # let key = self.secret.subkeys().nth(0) -# .map(|binding| binding.subkey().clone()) +# .map(|binding| binding.key().clone()) # .unwrap(); # # // The secret key is not encrypted. @@ -535,7 +535,7 @@ impl<'a> DecryptionHelper for Helper<'a> { { // The encryption key is the first and only subkey. let key = self.secret.subkeys().nth(0) - .map(|binding| binding.subkey().clone()) + .map(|binding| binding.key().clone()) .unwrap(); // The secret key is not encrypted. |