Fix Boxes.saved_context example in Navigation documentation

The code example for Boxes.saved_context() uses a with statement
that does not properly call the self.saved_context method (misses
call parenthesis).
This commit is contained in:
Henning Pridöhl 2021-05-09 18:41:22 +02:00 committed by Florian Festi
parent 08c42ba5b8
commit 01f156d4a3
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ It can be used with the following code pattern:
.. code-block:: python
with self.saved_context:
with self.saved_context():
self.rectangularWall(x, h, move="right")
self.rectangularWall(y, h, move="right")
self.rectangularWall(y, h, move="right")