summaryrefslogtreecommitdiff
path: root/Doc/library/heapq.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/heapq.rst')
-rw-r--r--Doc/library/heapq.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst
index 1530144918..5221c4e58e 100644
--- a/Doc/library/heapq.rst
+++ b/Doc/library/heapq.rst
@@ -68,7 +68,7 @@ The following functions are provided:
if item > heap[0]:
item = heapreplace(heap, item)
-Example of use::
+Example of use:
>>> from heapq import heappush, heappop
>>> heap = []
@@ -85,7 +85,6 @@ Example of use::
>>> data.sort()
>>> data == ordered
True
- >>>
The module also offers three general purpose functions based on heaps.