Skip to content

Commit 2119ea6

Browse files
committed
update doc
1 parent 7afac62 commit 2119ea6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ This design allows us to perform unions, intersections, and complements of trans
239239
| `new_empty()` | `RegularExpression` | Creates a regular expression that matches the empty language. |
240240
| `new_empty_string()` | `RegularExpression` | Creates a regular expression that matches only the empty string `""`. |
241241
| `new_total()` | `RegularExpression` | Creates a regular expression that matches all possible strings. |
242-
| `parse(pattern: &str, simplify: bool)` | `Result<RegularExpression, EngineError>` | Parses the provided pattern and returns the resulting `RegularExpression`. If simplify is `true`, the expression is simplified during parsing. |
242+
| `parse(pattern: &str, simplify: bool)` | `Result<RegularExpression, EngineError>` | Parses the provided pattern and returns the resulting `RegularExpression`. If `simplify` is `true`, the expression is simplified during parsing. |
243243
| `repeat(&self, min: u32, max_opt: Option<u32>)` | `RegularExpression` | Computes the repetition of the automaton between `min` and `max_opt` times; if `max_opt` is `None`, the repetition is unbounded. |
244244
| `simplify(&self)` | `RegularExpression` | Returns a simplified version by eliminating redundant constructs and applying canonical reductions. |
245245
| `union(&self, other: &RegularExpression)` | `RegularExpression` | Returns a regular expression matching the union of `self` and `other`. |

src/regex/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl RegularExpression {
1616
Self::parse(pattern, true)
1717
}
1818

19-
/// Parses the provided pattern and returns the resulting [`RegularExpression`]. If simplify is `true`, the expression is simplified during parsing.
19+
/// Parses the provided pattern and returns the resulting [`RegularExpression`]. If `simplify` is `true`, the expression is simplified during parsing.
2020
pub fn parse(pattern: &str, simplify: bool) -> Result<Self, EngineError> {
2121
if pattern.is_empty() {
2222
return Ok(RegularExpression::new_empty_string());

0 commit comments

Comments
 (0)