Added comment to function
This commit is contained in:
@@ -47,6 +47,7 @@ func (re *Reg) UnmarshalText(text []byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Longest makes future searches prefer the longest branch of an alternation, as opposed to the leftmost branch.
|
||||||
func (re *Reg) Longest() {
|
func (re *Reg) Longest() {
|
||||||
re.preferLongest = true
|
re.preferLongest = true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user