aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0274d74..2ce9603 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -67,6 +67,13 @@ This crate can also be used without the standard library.
#[cfg(feature = "std")]
extern crate core;
+#[cfg(test)]
+#[macro_use]
+extern crate doc_comment;
+
+#[cfg(test)]
+doctest!("../README.md");
+
use core::fmt::Debug;
use core::hash::Hash;
use core::ptr::copy_nonoverlapping;