diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-07-24 12:12:35 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-07-24 16:28:09 +0200 |
commit | fadfb6ad5d9faf4f3efa6d54fbac03fdbd644bec (patch) | |
tree | 6dd7e7c1635937ad296df750d0eab5796a786b15 | |
parent | e7667b8d91edb100a696fb6e6ac72ba31fb79ed2 (diff) |
openpgp: Add links to the documentation.
- See #471.
-rw-r--r-- | openpgp/src/parse.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 6537147c..16c7ec6e 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -4277,10 +4277,12 @@ impl <'a> PacketParser<'a> { /// Causes the PacketParser to buffer the packet's contents. /// - /// The packet's contents can be retrieved using `packet.body()`. - /// In general, you should avoid buffering a packet's content and - /// prefer streaming its content unless you are certain that the - /// content is small. + /// The packet's contents can be retrieved using + /// e.g. [`Container::body`]. In general, you should avoid + /// buffering a packet's content and prefer streaming its content + /// unless you are certain that the content is small. + /// + /// [`Container::body`]: ../packet/struct.Container.html#method.body /// /// ```rust /// # fn main() -> sequoia_openpgp::Result<()> { @@ -4380,7 +4382,9 @@ impl <'a> PacketParser<'a> { /// Finishes parsing the current packet. /// /// By default, this drops any unread content. Use, for instance, - /// `PacketParserBuild` to customize the default behavior. + /// [`PacketParserBuilder`] to customize the default behavior. + /// + /// [`PacketParserBuilder`]: struct.PacketParserBuilder.html /// /// # Examples /// |