summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/mod.rs2
-rw-r--r--openpgp/src/types/timestamp.rs3
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.