aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/container/vector
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-10-13 13:05:16 -0700
committerRob Pike <r@golang.org>2009-10-13 13:05:16 -0700
commit8acb8fb7809ccbd1d0fba4c4d6661282f4645cef (patch)
treed9221abc51e7c2e7fcc6487c2db429caca61d019 /src/pkg/container/vector
parentfd4767f2c5328a14b50874ad3a25518c673ccd12 (diff)
downloadgo-8acb8fb7809ccbd1d0fba4c4d6661282f4645cef.tar.xz
reduce stutter: sort.SortInterface -> sort.Interface.
ditto for heap.HeapInterface R=gri,rsc DELTA=31 (0 added, 1 deleted, 30 changed) OCL=35665 CL=35673
Diffstat (limited to 'src/pkg/container/vector')
-rw-r--r--src/pkg/container/vector/intvector.go2
-rw-r--r--src/pkg/container/vector/stringvector.go2
-rw-r--r--src/pkg/container/vector/vector.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/container/vector/intvector.go b/src/pkg/container/vector/intvector.go
index 0ae25b9822..9db2529580 100644
--- a/src/pkg/container/vector/intvector.go
+++ b/src/pkg/container/vector/intvector.go
@@ -93,7 +93,7 @@ func (p *IntVector) AppendVector(x *IntVector) {
}
-// SortInterface support
+// sort.Interface support
// Less returns a boolean denoting whether the i'th element is less than the j'th element.
func (p *IntVector) Less(i, j int) bool {
return p.At(i) < p.At(j);
diff --git a/src/pkg/container/vector/stringvector.go b/src/pkg/container/vector/stringvector.go
index 4949d06b75..4e54ea85c4 100644
--- a/src/pkg/container/vector/stringvector.go
+++ b/src/pkg/container/vector/stringvector.go
@@ -92,7 +92,7 @@ func (p *StringVector) AppendVector(x *StringVector) {
}
-// SortInterface support
+// sort.Interface support
// Less returns a boolean denoting whether the i'th element is less than the j'th element.
func (p *StringVector) Less(i, j int) bool {
return p.At(i) < p.At(j);
diff --git a/src/pkg/container/vector/vector.go b/src/pkg/container/vector/vector.go
index fc7cf64ae9..3746b422a7 100644
--- a/src/pkg/container/vector/vector.go
+++ b/src/pkg/container/vector/vector.go
@@ -207,9 +207,9 @@ func (p *Vector) AppendVector(x *Vector) {
}
-// Partial SortInterface support
+// Partial sort.Interface support
-// LessInterface provides partial support of the SortInterface.
+// LessInterface provides partial support of the sort.Interface.
type LessInterface interface {
Less(y Element) bool;
}