mirror of
https://github.com/golang/go
synced 2024-11-18 14:24:44 -07:00
regexp: update comment on (*Regexp).Longest
Missed this review comment. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7229084
This commit is contained in:
parent
89a2a8c8df
commit
5fad786452
@ -130,7 +130,7 @@ func CompilePOSIX(expr string) (*Regexp, error) {
|
||||
return compile(expr, syntax.POSIX, true)
|
||||
}
|
||||
|
||||
// Longest sets the match semantics of the regexp to leftmost-longest.
|
||||
// Longest makes future searches prefer the leftmost-longest match.
|
||||
// That is, when matching against text, the regexp returns a match that
|
||||
// begins as early as possible in the input (leftmost), and among those
|
||||
// it chooses a match that is as long as possible.
|
||||
|
Loading…
Reference in New Issue
Block a user