Skip to content

Commit 9edcf21

Browse files
authored
fix typos in backtrack.rs
1 parent c7bf105 commit 9edcf21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backtrack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// regexes on small inputs because of its memory requirements.
1414
//
1515
// In particular, this is a *bounded* backtracking engine. It retains worst
16-
// case linear time by keeping track of the states that is has visited (using a
16+
// case linear time by keeping track of the states that it has visited (using a
1717
// bitmap). Namely, once a state is visited, it is never visited again. Since a
1818
// state is keyed by `(instruction index, input index)`, we have that its time
1919
// complexity is `O(mn)` (i.e., linear in the size of the search text).
@@ -36,7 +36,7 @@ type Bits = u32;
3636
const BIT_SIZE: usize = 32;
3737
const MAX_SIZE_BYTES: usize = 256 * (1 << 10); // 256 KB
3838

39-
/// Returns true iff the given regex and input should be executed by this
39+
/// Returns true if the given regex and input should be executed by this
4040
/// engine with reasonable memory usage.
4141
pub fn should_exec(num_insts: usize, text_len: usize) -> bool {
4242
// Total memory usage in bytes is determined by:

0 commit comments

Comments
 (0)