diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-15 10:24:27 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-16 08:38:22 +0100 |
commit | fde77d1029503be4da9b9bea7a9ae51d68c0331a (patch) | |
tree | 0e6e03d710dcca3272172eadb7ff2b3c9311d520 /openpgp/src/serialize/stream.rs | |
parent | 800a3d3841c0a14c96eeb221aa007ca9545815f0 (diff) |
openpgp: Improve example.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 9c5977c9..6fb4a241 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -988,7 +988,8 @@ impl<'a> Encryptor<'a> { /// // Build a vector of recipients to hand to Encryptor. /// let recipient = /// cert.keys().policy(None).alive().revoked(false) - /// .for_storage_encryption().for_transport_encryption() + /// // Or `for_storage_encryption()`, for data at rest. + /// .for_transport_encryption() /// .map(|ka| ka.key().into()) /// .nth(0).unwrap(); /// |