mirror of
https://gitee.com/openharmony/third_party_rust_glob
synced 2024-11-23 07:30:11 +00:00
Add doc-comment to test README examples
This commit is contained in:
parent
b003dc3218
commit
3e2f6df04f
@ -14,3 +14,4 @@ categories = ["filesystem"]
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3"
|
||||
doc-comment = "0.3"
|
||||
|
@ -63,6 +63,13 @@
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(all(test, windows), feature(std_misc))]
|
||||
|
||||
#[cfg(test)]
|
||||
#[macro_use]
|
||||
extern crate doc_comment;
|
||||
|
||||
#[cfg(test)]
|
||||
doctest!("../README.md");
|
||||
|
||||
use std::cmp;
|
||||
use std::error::Error;
|
||||
use std::fmt;
|
||||
|
Loading…
Reference in New Issue
Block a user