1
0

properly name method receiver

This commit is contained in:
Stephen McQuay 2016-11-06 11:18:26 -08:00
parent 6e3a40dd04
commit 36c85bf299
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D

View File

@ -9,8 +9,8 @@ func (r results) Less(i, j int) bool {
return r[i].h[0].count > r[j].h[0].count return r[i].h[0].count > r[j].h[0].count
} }
func (n histogram) Len() int { return len(n) } func (h histogram) Len() int { return len(h) }
func (n histogram) Swap(i, j int) { n[i], n[j] = n[j], n[i] } func (h histogram) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
func (n histogram) Less(i, j int) bool { func (h histogram) Less(i, j int) bool {
return n[i].count > n[j].count return h[i].count > h[j].count
} }