Skip to content

Commit 0954034

Browse files
authored
Merge pull request #81 from GuillaumeGomez/doc-comment
Add doc-comment to test README examples
2 parents b003dc3 + 3e2f6df commit 0954034

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ categories = ["filesystem"]
1414

1515
[dev-dependencies]
1616
tempdir = "0.3"
17+
doc-comment = "0.3"

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
#![deny(missing_docs)]
6464
#![cfg_attr(all(test, windows), feature(std_misc))]
6565

66+
#[cfg(test)]
67+
#[macro_use]
68+
extern crate doc_comment;
69+
70+
#[cfg(test)]
71+
doctest!("../README.md");
72+
6673
use std::cmp;
6774
use std::error::Error;
6875
use std::fmt;

0 commit comments

Comments
 (0)