diff options
author | Azul <azul@riseup.net> | 2020-12-11 18:05:58 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-11 18:09:09 +0100 |
commit | 9675e949909aef163dea230ad80ee7df1cba1ff8 (patch) | |
tree | 6b89dfd3dd98a1393966ddfd4ec79181bb648397 /openpgp/src/types | |
parent | e3d65e26e284b7a77af9f3b713790f8a98bc417f (diff) |
openpgp: Standardize fn main() in doctests.
- Avoid the additional `fn f()`.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r-- | openpgp/src/types/mod.rs | 2 | ||||
-rw-r--r-- | openpgp/src/types/timestamp.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs index e3f0f7a0..cc408770 100644 --- a/openpgp/src/types/mod.rs +++ b/openpgp/src/types/mod.rs @@ -83,7 +83,7 @@ pub(crate) trait Syncable : Sync {} /// # Examples /// /// ```rust -/// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { +/// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::cert::prelude::*; /// use openpgp::types::PublicKeyAlgorithm; diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 90fa4980..ceb31ad7 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -173,8 +173,7 @@ impl Timestamp { /// # use sequoia_openpgp::{*, packet::prelude::*, types::*, cert::*}; /// use sequoia_openpgp::policy::StandardPolicy; /// - /// # f().unwrap(); - /// # fn f() -> Result<()> { + /// # fn main() -> Result<()> { /// let policy = &StandardPolicy::new(); /// /// // Let's fix a time. |