Added comment to function
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user