summaryrefslogtreecommitdiff
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-06-20 21:02:11 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-20 14:33:10 +1000
commitb01f66c5f1a0ceb14f0a864cd068874ec69258e1 (patch)
treea61d0f078be5394318dccd948a1c6eb669cbbdfb /py/objcomplex.c
parent0a36a80f96e0951e868f1e253b1c82835a9d0918 (diff)
py: Shorten error messages by using contractions and some rewording.
Diffstat (limited to 'py/objcomplex.c')
-rw-r--r--py/objcomplex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index 409d65666..42b396da3 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -195,13 +195,13 @@ mp_obj_t mp_obj_complex_binary_op(mp_binary_op_t op, mp_float_t lhs_real, mp_flo
}
case MP_BINARY_OP_FLOOR_DIVIDE:
case MP_BINARY_OP_INPLACE_FLOOR_DIVIDE:
- mp_raise_TypeError("can't do truncated division of a complex number");
+ mp_raise_TypeError("can't truncate-divide a complex number");
case MP_BINARY_OP_TRUE_DIVIDE:
case MP_BINARY_OP_INPLACE_TRUE_DIVIDE:
if (rhs_imag == 0) {
if (rhs_real == 0) {
- mp_raise_msg(&mp_type_ZeroDivisionError, "complex division by zero");
+ mp_raise_msg(&mp_type_ZeroDivisionError, "complex divide by zero");
}
lhs_real /= rhs_real;
lhs_imag /= rhs_real;