summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index b8e74b75ec..ee8b61eeff 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -410,7 +410,9 @@ dictionary syntax::
'bar'
>>> del c['foo']
>>> c['foo']
- ''
+ Traceback (most recent call last):
+ ...
+ KeyError: 'foo'
>>> c['newvariable'] = 'hello'
>>> c['newvariable']
'hello'