Skip to content

Commit

Permalink
tests: replace "cfg(test)" with "cfg(doctest)" for readme testing
Browse files Browse the repository at this point in the history
PR #135
  • Loading branch information
GuillaumeGomez authored May 7, 2020
1 parent bab4066 commit 0b3ff12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) {
#![deny(missing_docs)]
#![allow(unknown_lints)]

#[cfg(test)]
#[cfg(doctest)]
doc_comment::doctest!("../README.md");

use std::cmp::{min, Ordering};
Expand Down

0 comments on commit 0b3ff12

Please sign in to comment.