]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Minor documentation improvements (GH-140626) (#141161)
authorRodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Thu, 6 Nov 2025 17:37:31 +0000 (17:37 +0000)
committerGitHub <noreply@github.com>
Thu, 6 Nov 2025 17:37:31 +0000 (17:37 +0000)
Doc/library/heapq.rst

index d3c4b920ba500a83d11930d7156920a021c9b38a..4db2a4eca8dbbdac4166d4015399f686a72bdf47 100644 (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*.