Use "conversion" instead of "cast", per spec

Closes #200
This commit is contained in:
Mark McGranaghan
2019-05-31 12:45:42 -07:00
parent d351883ab8
commit 2d9b204571
12 changed files with 26 additions and 26 deletions

View File

@@ -33,8 +33,8 @@ func (s byLength) Less(i, j int) bool {
}
// With all of this in place, we can now implement our
// custom sort by casting the original `fruits` slice to
// `byLength`, and then use `sort.Sort` on that typed
// custom sort by converting the original `fruits` slice
// to `byLength`, and then use `sort.Sort` on that typed
// slice.
func main() {
fruits := []string{"peach", "banana", "kiwi"}