go fmt
This commit is contained in:
parent
62e6f1f648
commit
6a38fa3719
|
@ -78,11 +78,11 @@ func toLowerDeferredCopy(s []byte) []byte {
|
|||
// Handles the Unicode edge-case where the last
|
||||
// rune in a word on the greek Σ needs to be converted
|
||||
// differently.
|
||||
if l == 'σ' && i + 2 == len(s) {
|
||||
if l == 'σ' && i+2 == len(s) {
|
||||
l = 'ς'
|
||||
}
|
||||
|
||||
lwid := utf8.RuneLen(l)
|
||||
lwid := utf8.RuneLen(l)
|
||||
if lwid > wid {
|
||||
// utf-8 encoded replacement is wider
|
||||
// for now, punt and defer
|
||||
|
|
|
@ -127,7 +127,7 @@ func (s *DisjunctionSearcher) updateMatches() error {
|
|||
return err
|
||||
}
|
||||
|
||||
last := len(s.searchers)-1
|
||||
last := len(s.searchers) - 1
|
||||
s.searchers[i] = s.searchers[last]
|
||||
s.searchers = s.searchers[0:last]
|
||||
s.currs[i] = s.currs[last]
|
||||
|
|
Loading…
Reference in New Issue