Skip to content

Commit e753887

Browse files
[3.13] Minor documentation improvements (GH-140626) (#141161)
1 parent 00032a4 commit e753887

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/heapq.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ populated list into a heap via function :func:`heapify`.
4242
The following functions are provided:
4343

4444

45+
.. function:: heapify(x)
46+
47+
Transform list *x* into a heap, in-place, in linear time.
48+
49+
4550
.. function:: heappush(heap, item)
4651

4752
Push the value *item* onto the *heap*, maintaining the heap invariant.
@@ -61,11 +66,6 @@ The following functions are provided:
6166
followed by a separate call to :func:`heappop`.
6267

6368

64-
.. function:: heapify(x)
65-
66-
Transform list *x* into a heap, in-place, in linear time.
67-
68-
6969
.. function:: heapreplace(heap, item)
7070

7171
Pop and return the smallest item from the *heap*, and also push the new *item*.

0 commit comments

Comments
 (0)