Skip to content

Commit

Permalink
[1.7.x] Fixed typos in docs/ref/templates/api.txt
Browse files Browse the repository at this point in the history
Backport of c612786 from master
  • Loading branch information
timgraham committed Apr 14, 2015
1 parent 4c9d79e commit 1b21666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ref/templates/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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()``
Expand Down

0 comments on commit 1b21666

Please sign in to comment.