diff options
Diffstat (limited to 'vendor/golang.org/x/text/unicode/norm/iter.go')
-rw-r--r-- | vendor/golang.org/x/text/unicode/norm/iter.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/golang.org/x/text/unicode/norm/iter.go b/vendor/golang.org/x/text/unicode/norm/iter.go index ce17f96..417c6b2 100644 --- a/vendor/golang.org/x/text/unicode/norm/iter.go +++ b/vendor/golang.org/x/text/unicode/norm/iter.go | |||
@@ -128,8 +128,9 @@ func (i *Iter) Next() []byte { | |||
128 | func nextASCIIBytes(i *Iter) []byte { | 128 | func nextASCIIBytes(i *Iter) []byte { |
129 | p := i.p + 1 | 129 | p := i.p + 1 |
130 | if p >= i.rb.nsrc { | 130 | if p >= i.rb.nsrc { |
131 | p0 := i.p | ||
131 | i.setDone() | 132 | i.setDone() |
132 | return i.rb.src.bytes[i.p:p] | 133 | return i.rb.src.bytes[p0:p] |
133 | } | 134 | } |
134 | if i.rb.src.bytes[p] < utf8.RuneSelf { | 135 | if i.rb.src.bytes[p] < utf8.RuneSelf { |
135 | p0 := i.p | 136 | p0 := i.p |