summaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-01 16:03:45 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-03 14:22:49 +0200
commit08fc6757629ce38913cf594f8177dfb4496224d4 (patch)
tree52296f5515ac5a67ce7f5bc176c3403b632ff1c4 /guide
parenta3e3ab4d03a25c576961d20fa42c494280114be3 (diff)
openpgp: Convert `Message::from_packet_pile` to `TryFrom<PacketPile>`
Diffstat (limited to 'guide')
-rw-r--r--guide/src/chapter_03.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guide/src/chapter_03.md b/guide/src/chapter_03.md
index 91f07b04..19a42147 100644
--- a/guide/src/chapter_03.md
+++ b/guide/src/chapter_03.md
@@ -95,13 +95,13 @@ 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::from_packet_pile`] or [`Cert::from_packet_pile`], or just
+[`Message::try_from`] or [`Cert::from_packet_pile`], 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
-[`Message::from_packet_pile`]: ../../sequoia_openpgp/struct.Message.html#method.from_packet_pile
+[`Message::try_from`]: ../../sequoia_openpgp/struct.Message.html#method.try_from
```rust
extern crate sequoia_openpgp as openpgp;