aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-08-14 11:33:45 -0400
committerJack O'Connor <[email protected]>2020-08-14 11:33:53 -0400
commit09cc03614dc8edc9ffccad256178e84699fe4fc7 (patch)
tree676bbac47dfcc8d5c0bf24346810963447727b59
parent88094169fcfa0256a64e0159377cc03875be0dd4 (diff)
the same hex example for rustdocs
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
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(())
//! # }
//! ```