From 01f156d4a381501e515ecf5e8af89ae36bdc81dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henning=20Prid=C3=B6hl?= Date: Sun, 9 May 2021 18:41:22 +0200 Subject: [PATCH] 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). --- documentation/src/api_navigation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/api_navigation.rst b/documentation/src/api_navigation.rst index 3c550ea..7845a10 100644 --- a/documentation/src/api_navigation.rst +++ b/documentation/src/api_navigation.rst @@ -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")