]> Cypherpunks repositories - gostls13.git/commitdiff
suffixarray: rename Data() -> Bytes()
authorRobert Griesemer <gri@golang.org>
Tue, 14 Dec 2010 18:22:00 +0000 (10:22 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 14 Dec 2010 18:22:00 +0000 (10:22 -0800)
R=rsc
CC=golang-dev
https://golang.org/cl/3540042

src/pkg/index/suffixarray/suffixarray.go

index 0a8d9e2cb8b770826eea756c32d211b35ded016b..9dec943d57a2003005588d893c4e34cd2dd8c13e 100644 (file)
@@ -49,10 +49,10 @@ func New(data []byte) *Index {
 }
 
 
-// Data returns the data over which the index was created.
+// Bytes returns the data over which the index was created.
 // It must not be modified.
 //
-func (x *Index) Data() []byte {
+func (x *Index) Bytes() []byte {
        return x.data
 }