Commit 1b21666b authored by Tim Graham's avatar Tim Graham
Browse files

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

Backport of c612786c from master
parent 4c9d79e1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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()``