[3.13] Minor documentation improvements (GH-140626) (#141161)

This commit is contained in:
Rodrigo Girão Serrão 2025-11-06 17:37:31 +00:00 committed by GitHub
parent 00032a4245
commit e753887bd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,11 @@ populated list into a heap via function :func:`heapify`.
The following functions are provided:
.. function:: heapify(x)
Transform list *x* into a heap, in-place, in linear time.
.. function:: heappush(heap, item)
Push the value *item* onto the *heap*, maintaining the heap invariant.
@ -61,11 +66,6 @@ The following functions are provided:
followed by a separate call to :func:`heappop`.
.. function:: heapify(x)
Transform list *x* into a heap, in-place, in linear time.
.. function:: heapreplace(heap, item)
Pop and return the smallest item from the *heap*, and also push the new *item*.