Skip to content

Commit 985a662

Browse files
Multimodcraftershilangyu
authored andcommitted
Fix spelling
1 parent 7b9e339 commit 985a662

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ impl NFA {
11061106
self.0.lookaround_count
11071107
}
11081108

1109-
/// Returns the starting states for initializing look-behind evaluation
1109+
/// Returns the starting states for initializing look-behind evaluation.
11101110
#[inline]
11111111
pub fn look_behind_starts(&self) -> &Vec<StateID> {
11121112
&self.0.start_look_behind
@@ -1276,7 +1276,7 @@ pub(super) struct Inner {
12761276
/// This is needed to initialize the table for storing the result of
12771277
/// look-around evaluation.
12781278
lookaround_count: usize,
1279-
/// Contains the start states for each of the look-behind subexpressions
1279+
/// Contains the start states for each of the look-behind subexpressions.
12801280
start_look_behind: Vec<StateID>,
12811281
/// Heap memory used indirectly by NFA states and other things (like the
12821282
/// various capturing group representations above). Since each state

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ impl PikeVM {
12871287

12881288
// This brings the look-behind threads into the state they must be for
12891289
// starting at input.start() instead of the beginning. This is
1290-
// necessary for lookbehinds to be able to match outside of the input
1290+
// necessary for look-behinds to be able to match outside of the input
12911291
// span.
12921292
for lb_at in 0..input.start() {
12931293
self.nexts(
@@ -1413,7 +1413,7 @@ impl PikeVM {
14131413
stack, slots, curr, lookaround, input, at, start_id,
14141414
);
14151415
}
1416-
// The lookbehind states must be processed first, since their
1416+
// The look-behind states must be processed first, since their
14171417
// result must be available for the processing of the main states.
14181418
self.nexts(
14191419
stack,
@@ -2066,9 +2066,9 @@ pub struct Cache {
20662066
/// haystack at which look-around indexed x holds and which is <= to the
20672067
/// current position".
20682068
lookaround: Vec<Option<NonMaxUsize>>,
2069-
/// The current active states for look-behind subexpressions
2069+
/// The current active states for look-behind subexpressions.
20702070
curr_lookaround: ActiveStates,
2071-
/// The next set of states to be explored for look-behind subexpressions
2071+
/// The next set of states to be explored for look-behind subexpressions.
20722072
next_lookaround: ActiveStates,
20732073
}
20742074

0 commit comments

Comments
 (0)