summaryrefslogtreecommitdiff
path: root/index.rst
diff options
context:
space:
mode:
authorDougal Matthews <dougal@dougalmatthews.com>2015-02-18 17:42:20 +0000
committerDougal Matthews <dougal@dougalmatthews.com>2015-02-18 17:42:20 +0000
commit151b4c1d110b2984b0af2d419c6485169f8305e7 (patch)
treee2fc7d18459e8d0c1226242dc91dfbc33ddc0340 /index.rst
parentd52cd59d28766c72314537e2a087665b8b54fa9b (diff)
downloadsimplejson-151b4c1d110b2984b0af2d419c6485169f8305e7.tar.gz
Fixed a typo in the docs
Diffstat (limited to 'index.rst')
-rw-r--r--index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.rst b/index.rst
index 47c4d17..fedf7ee 100644
--- a/index.rst
+++ b/index.rst
@@ -101,7 +101,7 @@ Specializing JSON object encoding::
>>> def encode_complex(obj):
... if isinstance(obj, complex):
... return [obj.real, obj.imag]
- ... raise TypeError(repr(o) + " is not JSON serializable")
+ ... raise TypeError(repr(obj) + " is not JSON serializable")
...
>>> json.dumps(2 + 1j, default=encode_complex)
'[2.0, 1.0]'