]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#4611: fix typo.
authorGeorg Brandl <georg@python.org>
Mon, 15 Dec 2008 08:36:11 +0000 (08:36 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 15 Dec 2008 08:36:11 +0000 (08:36 +0000)
Doc/extending/extending.rst

index ae9e493c40b327e7d7b8496c71c70c4838c45b0a..8c2268ec7b8ed5e989a8cfda268d55e420831890 100644 (file)
@@ -865,7 +865,7 @@ memory and should be avoided completely. [#]_
 The advantage of borrowing over owning a reference is that you don't need to
 take care of disposing of the reference on all possible paths through the code
 --- in other words, with a borrowed reference you don't run the risk of leaking
-when a premature exit is taken.  The disadvantage of borrowing over leaking is
+when a premature exit is taken.  The disadvantage of borrowing over owning is
 that there are some subtle situations where in seemingly correct code a borrowed
 reference can be used after the owner from which it was borrowed has in fact
 disposed of it.