Commit 5fad7864 authored by Andrew Gerrand's avatar Andrew Gerrand

regexp: update comment on (*Regexp).Longest

Missed this review comment.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7229084
parent 89a2a8c8
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment