Skip to content

Commit e0d538a

Browse files
committed
doc: update README doctests
1 parent 5ea3eb1 commit e0d538a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ default-features = false
189189
[dev-dependencies]
190190
# For property based tests.
191191
quickcheck = { version = "1.0.3", default-features = false }
192-
# To check README's example
193-
doc-comment = "0.3"
194192
# For easy error handling in integration tests.
195193
anyhow = "1.0.69"
196194
# A library for testing regex engines.

regex-automata/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ regex-syntax = { path = "../regex-syntax", version = "0.8.5", optional = true, d
9292
[dev-dependencies]
9393
anyhow = "1.0.69"
9494
bstr = { version = "1.3.0", default-features = false, features = ["std"] }
95-
doc-comment = "0.3.3"
9695
quickcheck = { version = "1.0.3", default-features = false }
9796
regex-test = { path = "../regex-test", version = "0.1.0" }
9897

regex-automata/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,9 @@ extern crate std;
630630
#[cfg(feature = "alloc")]
631631
extern crate alloc;
632632

633+
#[doc = include_str!("../README.md")]
633634
#[cfg(doctest)]
634-
doc_comment::doctest!("../README.md");
635+
pub struct ReadmeDoctests;
635636

636637
#[doc(inline)]
637638
pub use crate::util::primitives::PatternID;

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,8 +1324,9 @@ this for literal optimizations.
13241324
#![cfg_attr(docsrs_regex, feature(doc_cfg))]
13251325
#![warn(missing_debug_implementations)]
13261326

1327+
#[doc = include_str!("../README.md")]
13271328
#[cfg(doctest)]
1328-
doc_comment::doctest!("../README.md");
1329+
pub struct ReadmeDoctests;
13291330

13301331
extern crate alloc;
13311332
#[cfg(any(test, feature = "std"))]

0 commit comments

Comments
 (0)