From 2419f52d434096edebab85b3fa7141bcfa584583 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 4 Dec 2023 14:45:13 +0200 Subject: Fixed typo --- src/nfa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nfa.rs b/src/nfa.rs index 60bbdae..c92a6d5 100644 --- a/src/nfa.rs +++ b/src/nfa.rs @@ -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; -- cgit v1.2.3