summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2013-11-28 00:53:10 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2013-11-28 00:57:13 +0100
commit077af42139db84d88f293ab5eadc989a9169dce1 (patch)
tree5e1c40b1ceaa6b95c328afcea2bfb67b1a70e863 /docs/ref
parenta5b94d9d4ea7f85f68bbbb7520d0d5475fbb846c (diff)
Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/templates/api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index b3e49b6773..6c22017943 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -306,10 +306,12 @@ If you ``pop()`` too much, it'll raise
>>> c = Context()
>>> c['foo'] = 'first level'
>>> c.push()
+ {}
>>> c['foo'] = 'second level'
>>> c['foo']
'second level'
>>> c.pop()
+ {'foo': 'second level'}
>>> c['foo']
'first level'
>>> c['foo'] = 'overwritten'