diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-20 21:02:11 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-20 14:33:10 +1000 |
commit | b01f66c5f1a0ceb14f0a864cd068874ec69258e1 (patch) | |
tree | a61d0f078be5394318dccd948a1c6eb669cbbdfb /py/objfloat.c | |
parent | 0a36a80f96e0951e868f1e253b1c82835a9d0918 (diff) |
py: Shorten error messages by using contractions and some rewording.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r-- | py/objfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index b62fe8e71..2ea9947fe 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -262,7 +262,7 @@ mp_obj_t mp_obj_float_binary_op(mp_binary_op_t op, mp_float_t lhs_val, mp_obj_t case MP_BINARY_OP_INPLACE_FLOOR_DIVIDE: if (rhs_val == 0) { zero_division_error: - mp_raise_msg(&mp_type_ZeroDivisionError, "division by zero"); + mp_raise_msg(&mp_type_ZeroDivisionError, "divide by zero"); } // Python specs require that x == (x//y)*y + (x%y) so we must // call divmod to compute the correct floor division, which |