aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/container/heap/heap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/container/heap/heap.go b/src/container/heap/heap.go
index 67b5efcac7..1ed0da8e6a 100644
--- a/src/container/heap/heap.go
+++ b/src/container/heap/heap.go
@@ -66,8 +66,8 @@ func Pop(h Interface) interface{} {
return h.Pop()
}
-// Remove removes the element at index i from the heap.
-// The complexity is O(log(n)) where n = h.Len().
+// Remove removes the element at index i from the heap and returns
+// the element. The complexity is O(log(n)) where n = h.Len().
//
func Remove(h Interface, i int) interface{} {
n := h.Len() - 1