]> Cypherpunks.ru repositories - gostls13.git/commitdiff
index/suffixarray: fix a typo mistake in comments
authorZhou Peng <p@ctriple.cn>
Tue, 29 May 2018 08:56:42 +0000 (08:56 +0000)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Tue, 29 May 2018 12:16:51 +0000 (12:16 +0000)
Change-Id: Ibdd1ca7bfc6fb2419621338f1f8e37c876ba89c0
Reviewed-on: https://go-review.googlesource.com/114976
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
src/index/suffixarray/suffixarray.go

index c59ae6eef1fd26d32524585a5a4a0d4a08629f3b..0961ac4fb21beb9b712031e6c47282e61a2d80cc 100644 (file)
@@ -107,7 +107,7 @@ func (x *Index) Read(r io.Reader) error {
 
        // allocate space
        if 2*n < cap(x.data) || cap(x.data) < n {
-               // new data is significantly smaller or larger then
+               // new data is significantly smaller or larger than
                // existing buffers - allocate new ones
                x.data = make([]byte, n)
                x.sa = make([]int, n)