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:
parent
08c42ba5b8
commit
01f156d4a3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue