summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-14 07:58:01 -0400
committerTim Graham <timograham@gmail.com>2015-04-14 07:58:36 -0400
commit42f9bbd9d945191168f6efee6fdb3fe75b73b2c8 (patch)
treea909e0ad96e9321f763d706ba19ca64eac9ca58c /docs
parente560bc2a3e3e396e1961e8ee121fafaedc56bd16 (diff)
[1.8.x] Fixed typos in docs/ref/templates/api.txt
Backport of c612786cf15e2e1d00162ed4e335e83b75e6c978 from master
Diffstat (limited to 'docs')
-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 9f468b2dbf..a3790896c3 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -457,8 +457,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'
@@ -469,12 +469,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()``