Merge pull request #22420 from PiOverFour/master

Doc: fix example in Array sort_custom()
This commit is contained in:
Rémi Verschelde 2018-09-25 15:14:02 +02:00 committed by GitHub
commit 525b8fdab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,7 @@
static func sort(a, b):
if a[0] < b[0]:
return true
return false
return false
var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]]
my_items.sort_custom(MyCustomSorter, "sort")