summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-24 12:26:35 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:06 +0200
commit078c4d7ee16ea06977ec8cb7cf5571c880e9c710 (patch)
treed929c970f9b6920a8f29edc903f4488ea3c6d5c3 /openpgp/src/serialize.rs
parentb3eeed5cad0031accc3ae848b44c44014d1fd78a (diff)
openpgp: Add links.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index d13d461c..7129240a 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -330,7 +330,7 @@ pub trait SerializeInto : MarshalInto {
///
/// If the length of the given slice is smaller than the maximal
/// length computed by `serialized_len()`, this function returns
- /// `Error::InvalidArgument`.
+ /// [`Error::InvalidArgument`].
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize> {
MarshalInto::serialize_into(self, buf)
}
@@ -361,7 +361,7 @@ pub trait SerializeInto : MarshalInto {
///
/// If the length of the given slice is smaller than the maximal
/// length computed by `serialized_len()`, this function returns
- /// `Error::InvalidArgument`.
+ /// [`Error::InvalidArgument`].
fn export_into(&self, buf: &mut [u8]) -> Result<usize> {
MarshalInto::export_into(self, buf)
}
@@ -422,7 +422,7 @@ pub trait MarshalInto : seal::Sealed {
///
/// If the length of the given slice is smaller than the maximal
/// length computed by `serialized_len()`, this function returns
- /// `Error::InvalidArgument`.
+ /// [`Error::InvalidArgument`].
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>;
/// Serializes the packet to a vector.
@@ -455,7 +455,7 @@ pub trait MarshalInto : seal::Sealed {
///
/// If the length of the given slice is smaller than the maximal
/// length computed by `serialized_len()`, this function returns
- /// `Error::InvalidArgument`.
+ /// [`Error::InvalidArgument`].
fn export_into(&self, buf: &mut [u8]) -> Result<usize> {
self.serialize_into(buf)
}