aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-12-14 10:22:00 -0800
committerRobert Griesemer <gri@golang.org>2010-12-14 10:22:00 -0800
commit3fb6d62e3af7f5d0df4ec9b41cabfc7f5b6bec10 (patch)
tree305bd07160796a9a05f1cf8becb05599d3e05d11
parentd7340d9c2029cab7c61860542989aea52945526e (diff)
downloadgo-3fb6d62e3af7f5d0df4ec9b41cabfc7f5b6bec10.tar.gz
go-3fb6d62e3af7f5d0df4ec9b41cabfc7f5b6bec10.zip
suffixarray: rename Data() -> Bytes()
R=rsc CC=golang-dev https://golang.org/cl/3540042
-rw-r--r--src/pkg/index/suffixarray/suffixarray.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/index/suffixarray/suffixarray.go b/src/pkg/index/suffixarray/suffixarray.go
index 0a8d9e2cb8..9dec943d57 100644
--- a/src/pkg/index/suffixarray/suffixarray.go
+++ b/src/pkg/index/suffixarray/suffixarray.go
@@ -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
}