From fafdc3b97bc4329ded34686fa7dbd1a8e42812ca Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 8 Nov 2006 10:04:29 +0000 Subject: [PATCH] Bug #1592533: rename variable in heapq doc example, to avoid shadowing "sorted". --- Doc/lib/libheapq.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/lib/libheapq.tex b/Doc/lib/libheapq.tex index eaf7051b417..5f3d8c598af 100644 --- a/Doc/lib/libheapq.tex +++ b/Doc/lib/libheapq.tex @@ -76,14 +76,14 @@ Example of use: >>> for item in data: ... heappush(heap, item) ... ->>> sorted = [] +>>> ordered = [] >>> while heap: -... sorted.append(heappop(heap)) +... ordered.append(heappop(heap)) ... ->>> print sorted +>>> print ordered [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> data.sort() ->>> print data == sorted +>>> print data == ordered True >>> \end{verbatim}