aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2019-12-13 13:12:06 -0500
committerJack O'Connor <[email protected]>2019-12-13 13:12:06 -0500
commit0c245f21bf7f7b723b9714815e73fa5cc72a0724 (patch)
treef752f51b6c343d60e600d1a37fe1367169064d47 /src
parentaa0d282ee517996fd584038a8046a3ed423f2302 (diff)
fix the doc tests build
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4cb30f8..05690a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,6 +20,7 @@
//! assert_eq!(hash1, hash2);
//!
//! // Extended output.
+//! # #[cfg(feature = "std")] {
//! let mut output = Vec::new();
//! blake3::Hasher::new()
//! .update(b"foobarbaz")
@@ -28,6 +29,7 @@
//! .read_to_end(&mut output)?;
//! assert_eq!(output.len(), 1000);
//! assert_eq!(&output[..32], hash1.as_bytes());
+//! # }
//! # Ok(())
//! # }
//! ```