summaryrefslogtreecommitdiffstats
path: root/Doc/library/heapq.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/heapq.rst')
-rw-r--r--Doc/library/heapq.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst
index 4a18e02..6acb283 100644
--- a/Doc/library/heapq.rst
+++ b/Doc/library/heapq.rst
@@ -115,7 +115,7 @@ The module also offers three general purpose functions based on heaps.
streams is already sorted (smallest to largest).
-.. function:: nlargest(n, iterable[, key])
+.. function:: nlargest(n, iterable, key=None)
Return a list with the *n* largest elements from the dataset defined by
*iterable*. *key*, if provided, specifies a function of one argument that is
@@ -124,7 +124,7 @@ The module also offers three general purpose functions based on heaps.
reverse=True)[:n]``
-.. function:: nsmallest(n, iterable[, key])
+.. function:: nsmallest(n, iterable, key=None)
Return a list with the *n* smallest elements from the dataset defined by
*iterable*. *key*, if provided, specifies a function of one argument that is