diff options
Diffstat (limited to 'Doc/lib/libheapq.tex')
-rw-r--r-- | Doc/lib/libheapq.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libheapq.tex b/Doc/lib/libheapq.tex index 5a140ab..ffcafcd 100644 --- a/Doc/lib/libheapq.tex +++ b/Doc/lib/libheapq.tex @@ -85,13 +85,13 @@ True The module also offers two general purpose functions based on heaps. -\begin{funcdesc}{nlargest}{iterable, n} +\begin{funcdesc}{nlargest}{n, iterable} Return a list with the \var{n} largest elements from the dataset defined by \var{iterable}. Equivalent to: \code{sorted(iterable, reverse=True)[:n]} \versionadded{2.4} \end{funcdesc} -\begin{funcdesc}{nsmallest}{iterable, n} +\begin{funcdesc}{nsmallest}{n, iterable} Return a list with the \var{n} smallest elements from the dataset defined by \var{iterable}. Equivalent to: \code{sorted(iterable)[:n]} \versionadded{2.4} |