Consistency in sorting-by-functions.go

This commit is contained in:
Mark McGranaghan 2018-02-01 16:33:23 -05:00
parent bb743bb826
commit 12791a4921

View File

@ -10,7 +10,7 @@ import "sort"
import "fmt"
// In order to sort by a custom function in Go, we need a
// corresponding type. Here we've created a `ByLength`
// corresponding type. Here we've created a `byLength`
// type that is just an alias for the builtin `[]string`
// type.
type byLength []string