Renamed function

master
Aadhavan Srinivasan 3 days ago
parent 24a5045ebe
commit ca8f8e1030

@ -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)

Loading…
Cancel
Save