diff options
author | ale <ale@incal.net> | 2018-12-28 13:31:24 +0000 |
---|---|---|
committer | ale <ale@incal.net> | 2018-12-28 13:31:24 +0000 |
commit | 3518feaf05fcb7f745975851c6684a63532ff19a (patch) | |
tree | 4d9fd5888526576fc6934f3e2ef0f5c21c5c5ead /vendor/golang.org/x/text/unicode/norm/iter.go | |
parent | 2f3ca2f8677651a417d9e6819e8da3ed965a83f0 (diff) | |
download | crawl-3518feaf05fcb7f745975851c6684a63532ff19a.tar.gz crawl-3518feaf05fcb7f745975851c6684a63532ff19a.zip |
Updated dependencies
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 { func nextASCIIBytes(i *Iter) []byte { p := i.p + 1 if p >= i.rb.nsrc { + p0 := i.p i.setDone() - return i.rb.src.bytes[i.p:p] + return i.rb.src.bytes[p0:p] } if i.rb.src.bytes[p] < utf8.RuneSelf { p0 := i.p |