[1.8.x] Fixed typos in docs/ref/templates/api.txt

Backport of c612786cf1 from master
This commit is contained in:
Tim Graham 2015-04-14 07:58:01 -04:00
parent e560bc2a3e
commit 42f9bbd9d9
1 changed files with 4 additions and 4 deletions

View File

@ -457,8 +457,8 @@ is called.
>>> c = Context() >>> c = Context()
>>> c['foo'] = 'first level' >>> c['foo'] = 'first level'
>>> with c.push(): >>> with c.push():
>>> c['foo'] = 'second level' ... c['foo'] = 'second level'
>>> c['foo'] ... c['foo']
'second level' 'second level'
>>> c['foo'] >>> c['foo']
'first level' 'first level'
@ -469,12 +469,12 @@ used to build the new context level.
>>> c = Context() >>> c = Context()
>>> c['foo'] = 'first level' >>> c['foo'] = 'first level'
>>> with c.push(foo='second level'): >>> with c.push(foo='second level'):
>>> c['foo'] ... c['foo']
'second level' 'second level'
>>> c['foo'] >>> c['foo']
'first level' 'first level'
.. method:: update(other_dict) .. method:: Context.update(other_dict)
In addition to ``push()`` and ``pop()``, the ``Context`` In addition to ``push()`` and ``pop()``, the ``Context``
object also defines an ``update()`` method. This works like ``push()`` object also defines an ``update()`` method. This works like ``push()``