Consistency in sorting-by-functions.go
This commit is contained in:
parent
bb743bb826
commit
12791a4921
@ -10,7 +10,7 @@ import "sort"
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
// In order to sort by a custom function in Go, we need a
|
// 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 that is just an alias for the builtin `[]string`
|
||||||
// type.
|
// type.
|
||||||
type byLength []string
|
type byLength []string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user