diff options
Diffstat (limited to 'libgo/go/regexp/onepass.go')
-rw-r--r-- | libgo/go/regexp/onepass.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libgo/go/regexp/onepass.go b/libgo/go/regexp/onepass.go index 501fb28af66..e6f42856387 100644 --- a/libgo/go/regexp/onepass.go +++ b/libgo/go/regexp/onepass.go @@ -1,4 +1,6 @@ // Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package regexp @@ -9,9 +11,6 @@ import ( "unicode" ) -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - // "One-pass" regexp execution. // Some regexps can be analyzed to determine that they never need // backtracking: they are guaranteed to run in one pass over the string @@ -484,7 +483,7 @@ func makeOnePass(p *onePassProg) *onePassProg { } } if p != notOnePass { - for i, _ := range p.Inst { + for i := range p.Inst { p.Inst[i].Rune = onePassRunes[i] } } |