mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
#4611: fix typo.
This commit is contained in:
parent
3096c2d13e
commit
cbc1ed5e28
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
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
|
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
|
--- 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
|
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
|
reference can be used after the owner from which it was borrowed has in fact
|
||||||
disposed of it.
|
disposed of it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue