]> git.lizzy.rs Git - rust.git/blob - src/docs/invalid_regex.txt
Auto merge of #9425 - kraktus:patch-1, r=xFrednet
[rust.git] / src / docs / invalid_regex.txt
1 ### What it does
2 Checks [regex](https://crates.io/crates/regex) creation
3 (with `Regex::new`, `RegexBuilder::new`, or `RegexSet::new`) for correct
4 regex syntax.
5
6 ### Why is this bad?
7 This will lead to a runtime panic.
8
9 ### Example
10 ```
11 Regex::new("(")
12 ```