1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 04:22:22 +00:00

Merge pull request #341 from qichengzx/master

fix #275
This commit is contained in:
chai2010 2018-08-27 15:02:56 +08:00 committed by GitHub
commit 1721cb20f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ import "sort"
func main() {
values := []int32{42, 9, 101, 95, 27, 25}
sort.Slice(values, less func(i, j int) bool {
sort.Slice(values, func(i, j int) bool {
return values[i] < values[j]
})