diff --git a/django/utils/baseconv.py b/django/utils/baseconv.py index 28099affae..c43d9e5a9d 100644 --- a/django/utils/baseconv.py +++ b/django/utils/baseconv.py @@ -30,10 +30,10 @@ Sample usage:: >>> base20.decode('-31e') -1234 >>> base11 = BaseConverter('0123456789-', sign='$') - >>> base11.encode('$1234') + >>> base11.encode(-1234) '$-22' >>> base11.decode('$-22') - '$1234' + -1234 """