diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-27 10:26:07 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-28 11:39:13 +0200 |
commit | 9d4b91098d37549347fdfff9513b629fcd3d973f (patch) | |
tree | ca57b1ef8d2bc7702da081ed6938364859ab7693 /guide | |
parent | c72e1b0855795d2fcd914157e1bd64c66bd6b997 (diff) |
openpgp: Convert `Cert::from_packet_pile` into `TryFrom`
- Drop `Cert::from_packet_pile`.
- Fixes #462.
Diffstat (limited to 'guide')
-rw-r--r-- | guide/src/chapter_03.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guide/src/chapter_03.md b/guide/src/chapter_03.md index 19a42147..4d48717c 100644 --- a/guide/src/chapter_03.md +++ b/guide/src/chapter_03.md @@ -95,12 +95,12 @@ fn main() { [`PacketPile`]s are unstructured sequences of OpenPGP packets. Packet piles can be inspected, manipulated, validated using a formal grammar and thereby turned into [`Message`]s or [`Cert`]s using -[`Message::try_from`] or [`Cert::from_packet_pile`], or just +[`Message::try_from`] or [`Cert::try_from`], or just turned into a vector of [`Packet`]s: [`PacketPile`]: ../../sequoia_openpgp/struct.PacketPile.html [`Packet`]: ../../sequoia_openpgp/enum.Packet.html -[`Cert::from_packet_pile`]: ../../sequoia_openpgp/cert/struct.Cert.html#method.from_packet_pile +[`Cert::try_from`]: ../../sequoia_openpgp/cert/struct.Cert.html#method.try_from [`Message::try_from`]: ../../sequoia_openpgp/struct.Message.html#method.try_from ```rust |