Skip to content

Commit

Permalink
add not about implicit borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jul 31, 2024
1 parent 8cec78d commit a2a53bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/model_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Iteration is also supported (but don't forget to return your models!).
.. code-block:: pycon
>>> with library:
... for model in library:
... for model in library: # implicitly calls borrow()
... # do stuff with the model...
... library.shelve(model)
Expand Down

0 comments on commit a2a53bd

Please sign in to comment.