Skip to content

Commit 977f288

Browse files
authored
Fix doc tests without into-regex feature (#11, #10)
1 parent 618e75b commit 977f288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ Rust implementation of [Cucumber Expressions].
1414
This crate provides [AST] parser, and [`Regex`] expansion of [Cucumber Expressions].
1515

1616
```rust
17+
# // `Regex` expansion requires `into-regex` feature.
18+
# #[cfg(feature = "into-regex")] {
1719
use cucumber_expressions::Expression;
1820

1921
let re = Expression::regex("I have {int} cucumbers in my belly").unwrap();
2022
let caps = re.captures("I have 42 cucumbers in my belly").unwrap();
2123

2224
assert_eq!(&caps[0], "I have 42 cucumbers in my belly");
2325
assert_eq!(&caps[1], "42");
26+
# }
2427
```
2528

2629

0 commit comments

Comments
 (0)