We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8840aa commit 15995bdCopy full SHA for 15995bd
examples/sorting-by-functions/sorting-by-functions.go
@@ -18,7 +18,7 @@ type ByLength []string
18
// We implement `sort.Interface` - `Len`, `Less`, and
19
// `Swap` - on our type so we can use the `sort` package's
20
// generic `Sort` function. `Len` and `Swap`
21
-// will usually be similar accross types and `Less` will
+// will usually be similar across types and `Less` will
22
// hold the actual custom sorting logic. In our case we
23
// want to sort in order of increasing string length, so
24
// we use `len(s[i])` and `len(s[j])` here.
0 commit comments