Added comment to function

master v0.4.0
Aadhavan Srinivasan 1 week ago
parent 5f9bab528a
commit 595b86df60

@ -47,6 +47,7 @@ func (re *Reg) UnmarshalText(text []byte) error {
return err
}
// Longest makes future searches prefer the longest branch of an alternation, as opposed to the leftmost branch.
func (re *Reg) Longest() {
re.preferLongest = true
}

Loading…
Cancel
Save