From 09cc03614dc8edc9ffccad256178e84699fe4fc7 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Fri, 14 Aug 2020 11:33:45 -0400 Subject: the same hex example for rustdocs --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 38112d1..95d3e83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,9 @@ //! output_reader.fill(&mut output); //! assert_eq!(&output[..32], hash1.as_bytes()); //! # } +//! +//! // Print a hash as hex. +//! println!("{}", hash1.to_hex()); //! # Ok(()) //! # } //! ``` -- cgit v1.2.3