summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types/timestamp.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-11 18:05:58 +0100
committerAzul <azul@riseup.net>2020-12-11 18:09:09 +0100
commit9675e949909aef163dea230ad80ee7df1cba1ff8 (patch)
tree6b89dfd3dd98a1393966ddfd4ec79181bb648397 /openpgp/src/types/timestamp.rs
parente3d65e26e284b7a77af9f3b713790f8a98bc417f (diff)
openpgp: Standardize fn main() in doctests.
- Avoid the additional `fn f()`.
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r--openpgp/src/types/timestamp.rs3
1 files changed, 1 insertions, 2 deletions
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.