mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-28 14:20:19 +00:00
15 lines
299 B
Rust
15 lines
299 B
Rust
extern crate skeptic;
|
|
|
|
use std::fs;
|
|
|
|
fn main() {
|
|
let paths = fs::read_dir("./pages/").unwrap();
|
|
|
|
for path in paths {
|
|
let p = path.unwrap().path();
|
|
let s = p.to_str().unwrap();
|
|
if s.contains(".md") {
|
|
skeptic::generate_doc_tests(&[s])
|
|
}
|
|
}
|
|
}
|