Skip to content

Commit

Permalink
Merge pull request #4 from rustadopt/pr65
Browse files Browse the repository at this point in the history
(ansi-term PR 65): Replace "cfg(test)" with "cfg(doctest)" for readme testing
  • Loading branch information
gierens authored Aug 29, 2023
2 parents 6528ac6 + b2d5a7a commit 84a487c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,14 @@
#![warn(trivial_casts, trivial_numeric_casts)]
#![warn(unused_extern_crates, unused_qualifications)]

#[cfg(test)]
doc_comment::doctest!("../README.md");
#[cfg(target_os="windows")]
extern crate winapi;
#[cfg(doctest)]
#[macro_use]
extern crate doc_comment;

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

mod ansi;
pub use crate::ansi::{Prefix, Infix, Suffix};
Expand Down

0 comments on commit 84a487c

Please sign in to comment.