Skip to content

Commit 3a3142e

Browse files
Merge pull request #18 from GuillaumeGomez/update
Update
2 parents 780f927 + 5561a02 commit 3a3142e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "doc-comment"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
authors = ["Guillaume Gomez <[email protected]>"]
55

66
documentation = "http://docs.rs/crate/doc-comment"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ extern crate doc_comment;
2020
// If you want to test examples in your README file.
2121
doctest!("../README.md");
2222

23+
// If you want to test your README file ONLY on "cargo test":
24+
#[cfg(doctest)]
25+
doctest!("../README.md");
26+
2327
// If you want to document an item:
2428
doc_comment!(concat!("fooo", "or not foo"), pub struct Foo {});
2529
````

0 commit comments

Comments
 (0)