فهرست منبع

Added comment about the source of the heap implementation.

Kamil Kisiel 11 سال پیش
والد
کامیت
a1ae257e5f
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      sample.go

+ 1 - 0
sample.go

@@ -535,6 +535,7 @@ func newExpDecaySampleHeap(reservoirSize int) *expDecaySampleHeap {
 }
 
 // expDecaySampleHeap is a min-heap of expDecaySamples.
+// The internal implementation is copied from the standard library's container/heap
 type expDecaySampleHeap struct {
 	s []expDecaySample
 }