summaryrefslogtreecommitdiff
path: root/docs/ref/templates/api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/templates/api.txt')
-rw-r--r--docs/ref/templates/api.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index 177371055e..69f7fca410 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -364,8 +364,8 @@ is called.
>>> c = Context()
>>> c['foo'] = 'first level'
>>> with c.push():
- >>> c['foo'] = 'second level'
- >>> c['foo']
+ ... c['foo'] = 'second level'
+ ... c['foo']
'second level'
>>> c['foo']
'first level'
@@ -376,12 +376,12 @@ used to build the new context level.
>>> c = Context()
>>> c['foo'] = 'first level'
>>> with c.push(foo='second level'):
- >>> c['foo']
+ ... c['foo']
'second level'
>>> c['foo']
'first level'
-.. method:: update(other_dict)
+.. method:: Context.update(other_dict)
In addition to ``push()`` and ``pop()``, the ``Context``
object also defines an ``update()`` method. This works like ``push()``