Skip to content

Commit db5803b

Browse files
pazzCopilot
andcommitted
Apply suggestions from code review
Copilot found some typos in doc strings Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 46d0d3e commit db5803b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/nfa.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ pub enum StateOrdering {
4242
}
4343

4444
impl Nfa {
45-
/// checks if the nfa is is complete:
46-
/// every state has a an outgoing transition for every letter in the alphabet
45+
/// checks if the nfa is complete:
46+
/// every state has an outgoing transition for every letter in the alphabet
4747
///
4848
/// TODO: this uses equality on (sorted) vectors. Are HashSets better?
4949
pub fn is_complete(&self) -> bool {
@@ -90,7 +90,7 @@ impl Nfa {
9090
.collect::<Vec<_>>();
9191
state_actions.sort();
9292

93-
// for every alphabent letter add new transitions
93+
// for every alphabet letter add new transitions
9494
for letter in &letters {
9595
if !state_actions.contains(letter) {
9696
match sink_state {

0 commit comments

Comments
 (0)