Add doc-comment to test README examples

This commit is contained in:
Guillaume Gomez 2019-05-02 17:28:28 +02:00
parent b003dc3218
commit 3e2f6df04f
2 changed files with 8 additions and 0 deletions

View File

@ -14,3 +14,4 @@ categories = ["filesystem"]
[dev-dependencies]
tempdir = "0.3"
doc-comment = "0.3"

View File

@ -63,6 +63,13 @@
#![deny(missing_docs)]
#![cfg_attr(all(test, windows), feature(std_misc))]
#[cfg(test)]
#[macro_use]
extern crate doc_comment;
#[cfg(test)]
doctest!("../README.md");
use std::cmp;
use std::error::Error;
use std::fmt;