aboutsummaryrefslogtreecommitdiff
path: root/src/sort
diff options
context:
space:
mode:
authorMatt Bostock <matt@mattbostock.com>2016-02-16 18:53:46 +0000
committerRobert Griesemer <gri@golang.org>2016-02-18 19:20:41 +0000
commit8fd1634f443cebcb176c7a95104b61240733e420 (patch)
treeac2f8763376463c75acc27074b45713e78d3272a /src/sort
parent3e91e8aa356328c5a7c2ab0f6291f99c69145cdc (diff)
downloadgo-8fd1634f443cebcb176c7a95104b61240733e420.tar.gz
go-8fd1634f443cebcb176c7a95104b61240733e420.zip
sort: Fix typo in stable sort comment
Fix `reverences`, which I believe should read as `references`. Change-Id: I450efcbeee0f8861a84b209f2e6636764034232a Reviewed-on: https://go-review.googlesource.com/19469 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/sort')
-rw-r--r--src/sort/sort.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort/sort.go b/src/sort/sort.go
index ac8f4a661f..5eb45c6d4a 100644
--- a/src/sort/sort.go
+++ b/src/sort/sort.go
@@ -335,7 +335,7 @@ func StringsAreSorted(a []string) bool { return IsSorted(StringSlice(a)) }
// unstable or rely on enough different elements in each step to encode the
// performed block rearrangements. See also "In-Place Merging Algorithms",
// Denham Coates-Evely, Department of Computer Science, Kings College,
-// January 2004 and the reverences in there.
+// January 2004 and the references in there.
// - Often "optimal" algorithms are optimal in the number of assignments
// but Interface has only Swap as operation.