Skip to content

Commit

Permalink
Merge pull request #81 from GuillaumeGomez/doc-comment
Browse files Browse the repository at this point in the history
Add doc-comment to test README examples
  • Loading branch information
KodrAus committed May 2, 2019
2 parents b003dc3 + 3e2f6df commit 0954034
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -14,3 +14,4 @@ categories = ["filesystem"]

[dev-dependencies]
tempdir = "0.3"
doc-comment = "0.3"
7 changes: 7 additions & 0 deletions src/lib.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 0954034

Please sign in to comment.