diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-04 14:45:13 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-04 14:45:13 +0200 |
| commit | 2419f52d434096edebab85b3fa7141bcfa584583 (patch) | |
| tree | 1f48531301fc22261f5c6e85e5c365dbd512dafd /src | |
| parent | 7b145ffffa721837a9be83412d5ab4451bb28e8c (diff) | |
| download | rex-2419f52d434096edebab85b3fa7141bcfa584583.tar.xz rex-2419f52d434096edebab85b3fa7141bcfa584583.zip | |
Fixed typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/nfa.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -127,7 +127,7 @@ impl NFA { let mut result = false; for (id, trans) in &state.transitions { match trans { - // TODO: chars.nth() Work at O(n) consider using bytes for UTF-8 support + // TODO: chars.nth() Work at O(n) consider using bytes instead of losing UTF-8 support Trans::Symbol(ch) => match input.chars().nth(idx) { Some(nxt) if nxt == *ch => { idx += 1; |
