summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-15 08:36:11 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-15 08:36:11 (GMT)
commitcbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1 (patch)
tree5078ff03cd64f8b909bb8c245935fc5a54f5648f /Doc/extending
parent3096c2d13e4cfc66b8a08d94447ff4ae9ac7be90 (diff)
downloadcpython-cbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1.zip
cpython-cbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1.tar.gz
cpython-cbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1.tar.bz2
#4611: fix typo.
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/extending.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index ae9e493..8c2268e 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -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.