Add note about sort.Slice()
authorMikael Berthe <mikael@lilotux.net>
Sun, 26 Feb 2017 14:46:10 +0100
changeset 12 fc4f5c69286b
parent 11 01e6addfa1ee
child 13 72f6336c1167
Add note about sort.Slice()
gobm65.go
--- a/gobm65.go	Sun Feb 26 14:25:55 2017 +0100
+++ b/gobm65.go	Sun Feb 26 14:46:10 2017 +0100
@@ -227,6 +227,7 @@
 		}
 	}
 
+	// Note that sort.Slice was introduced in go 1.8
 	sort.Slice(oldItems, func(i, j int) bool {
 		return isLater(oldItems[i], oldItems[j])
 	})