aboutsummaryrefslogtreecommitdiff
path: root/py/modmath.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/modmath.c
parent0a36a80f96e0951e868f1e253b1c82835a9d0918 (diff)
py: Shorten error messages by using contractions and some rewording.
Diffstat (limited to 'py/modmath.c')
-rw-r--r--py/modmath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modmath.c b/py/modmath.c
index 7eda7594d..6072c780a 100644
--- a/py/modmath.c
+++ b/py/modmath.c
@@ -187,7 +187,7 @@ STATIC mp_obj_t mp_math_log(size_t n_args, const mp_obj_t *args) {
if (base <= (mp_float_t)0.0) {
math_error();
} else if (base == (mp_float_t)1.0) {
- mp_raise_msg(&mp_type_ZeroDivisionError, "division by zero");
+ mp_raise_msg(&mp_type_ZeroDivisionError, "divide by zero");
}
return mp_obj_new_float(l / MICROPY_FLOAT_C_FUN(log)(base));
}