]> Cypherpunks repositories - gostls13.git/commitdiff
sort: be consistent when describing "less: function in the multiKeys example
authorRob Pike <r@golang.org>
Tue, 2 Apr 2013 17:25:02 +0000 (10:25 -0700)
committerRob Pike <r@golang.org>
Tue, 2 Apr 2013 17:25:02 +0000 (10:25 -0700)
s/ordering/less/g

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8267043

src/pkg/sort/example_multi_test.go

index 8a2f277880b8111ab4ed5368cba572210b295327..d0a9e7dc3748cbe52f2b0412198638366d03a98c 100644 (file)
@@ -49,9 +49,9 @@ func (ms *multiSorter) Swap(i, j int) {
 }
 
 // Less is part of sort.Interface. It is implemented by looping along the
-// ordering functions until it finds a comparison that is either Less or
-// !Less. Note that it can call the ordering functions twice per call. We
-// could change the ordering functions to return -1, 0, 1 and reduce the
+// less functions until it finds a comparison that is either Less or
+// !Less. Note that it can call the less functions twice per call. We
+// could change the functions to return -1, 0, 1 and reduce the
 // number of calls for greater efficiency: an exercise for the reader.
 func (ms *multiSorter) Less(i, j int) bool {
        p, q := &ms.changes[i], &ms.changes[j]