summaryrefslogtreecommitdiffstats
path: root/openpgp/src/fmt.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/fmt.rs
parente3d65e26e284b7a77af9f3b713790f8a98bc417f (diff)
openpgp: Standardize fn main() in doctests.
- Avoid the additional `fn f()`.
Diffstat (limited to 'openpgp/src/fmt.rs')
-rw-r--r--openpgp/src/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/fmt.rs b/openpgp/src/fmt.rs
index 1921a784..5c62d1bd 100644
--- a/openpgp/src/fmt.rs
+++ b/openpgp/src/fmt.rs
@@ -40,7 +40,7 @@ pub mod hex {
/// # Examples
///
/// ```rust
- /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> {
+ /// # fn main() -> sequoia_openpgp::Result<()> {
/// use sequoia_openpgp::fmt::hex;
///
/// let mut dumper = hex::Dumper::new(Vec::new(), "");