Skip to content

Commit 8275c1b

Browse files
authored
doc: fix a few typos
PR #1085
1 parent cdc0dbd commit 8275c1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regex-automata/src/meta/regex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ impl Config {
27062706
/// you're compiling untrusted patterns.
27072707
///
27082708
/// Note that this limit is applied to _each_ NFA built, and if any of
2709-
/// them excceed the limit, then construction will fail. This limit does
2709+
/// them exceed the limit, then construction will fail. This limit does
27102710
/// _not_ correspond to the total memory used by all NFAs in the meta regex
27112711
/// engine.
27122712
///

regex-automata/src/nfa/thompson/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ enum State {
6161
Look { look: Look, next: StateID },
6262
/// An empty state that records the start of a capture location. This is an
6363
/// unconditional epsilon transition like `Empty`, except it can be used to
64-
/// record position information for a captue group when using the NFA for
64+
/// record position information for a capture group when using the NFA for
6565
/// search.
6666
CaptureStart {
6767
/// The ID of the pattern that this capture was defined.
@@ -77,7 +77,7 @@ enum State {
7777
},
7878
/// An empty state that records the end of a capture location. This is an
7979
/// unconditional epsilon transition like `Empty`, except it can be used to
80-
/// record position information for a captue group when using the NFA for
80+
/// record position information for a capture group when using the NFA for
8181
/// search.
8282
CaptureEnd {
8383
/// The ID of the pattern that this capture was defined.
@@ -128,7 +128,7 @@ enum State {
128128
}
129129

130130
impl State {
131-
/// If this state is an unconditional espilon transition, then this returns
131+
/// If this state is an unconditional epsilon transition, then this returns
132132
/// the target of the transition.
133133
fn goto(&self) -> Option<StateID> {
134134
match *self {

0 commit comments

Comments
 (0)