From 14af6794aa90ebd9c8f9ca534ed3f4b126c423c2 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Thu, 10 Apr 2014 10:40:57 -0500 Subject: [PATCH] Missing argument in heappush! --- doc/stdlib/collections.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/stdlib/collections.rst b/doc/stdlib/collections.rst index c93d4c2324930..9e92539e5c6c6 100644 --- a/doc/stdlib/collections.rst +++ b/doc/stdlib/collections.rst @@ -68,9 +68,9 @@ the heap are given in ascending order. Return true iff an array is heap-ordered according to the given order. -.. function:: heappush!(v, [ord]) +.. function:: heappush!(v, x, [ord]) - Given a binary heap-ordered array, push a new element, preserving the heap + Given a binary heap-ordered array, push a new element ``x``, preserving the heap property. For efficiency, this function does not check that the array is indeed heap-ordered.