1
0
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:
Andrew Gerrand 2013-02-04 15:57:32 +11:00
parent 89a2a8c8df
commit 5fad786452

View File

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