Renamed function

This commit is contained in:
2025-01-30 10:02:59 -05:00
parent 24a5045ebe
commit ca8f8e1030

View File

@@ -989,7 +989,7 @@ func thompson(re []postfixNode) (Reg, error) {
return &s
})
// Reduce the list of states down to a single state by alternating them
toAdd := Reduce(states, func(s1 *State, s2 *State) *State {
toAdd := funcReduce(states, func(s1 *State, s2 *State) *State {
return alternate(s1, s2)
})
nfa = append(nfa, toAdd)