瀏覽代碼

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
 }