Skip to content

Commit

Permalink
[1.7.x] Fixed #24600 -- Fixed inaccurate example in template Context …
Browse files Browse the repository at this point in the history
…docs.

Thanks pattypatpat for the report.

Backport of 3acefce from master
  • Loading branch information
timgraham committed Apr 8, 2015
1 parent 080e5dd commit 51e5e2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/ref/templates/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ dictionary syntax::
'bar'
>>> del c['foo']
>>> c['foo']
''
Traceback (most recent call last):
...
KeyError: 'foo'
>>> c['newvariable'] = 'hello'
>>> c['newvariable']
'hello'
Expand Down

0 comments on commit 51e5e2e

Please sign in to comment.