From a65f4b06e8d65ec20638ecc3b356b3b14b98a2de Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 7 Mar 2020 21:03:01 +0100 Subject: [PATCH 1/2] Improve README example --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8c0992d..ed4e619 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ extern crate doc_comment; // If you want to test examples in your README file. doctest!("../README.md"); +// If you want to test your README file ONLY on "cargo test": +#[cfg(doctest)] +doctest!("../README.md"); + // If you want to document an item: doc_comment!(concat!("fooo", "or not foo"), pub struct Foo {}); ```` From 5561a02eba786bdf85e583e711fc285df5a5d953 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 7 Mar 2020 21:03:58 +0100 Subject: [PATCH 2/2] Update crate version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 79494b4..df45d21 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "doc-comment" -version = "0.3.1" +version = "0.3.2" authors = ["Guillaume Gomez "] documentation = "http://docs.rs/crate/doc-comment"