aboutsummaryrefslogtreecommitdiff
path: root/py/objslice.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-04-09 17:22:25 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-13 22:19:37 +1000
commit8e048d2548867aac743866ca5a4c244b7b5aac09 (patch)
treee62e2ce312ba0e6dc498d7db8901d935f6afd3de /py/objslice.c
parentdb137e70dcf67de26828e17c2d3dc9d21e971eb0 (diff)
all: Clean up error strings to use lowercase and change cannot to can't.
Now that error string compression is supported it's more important to have consistent error string formatting (eg all lowercase English words, consistent contractions). This commit cleans up some of the strings to make them more consistent.
Diffstat (limited to 'py/objslice.c')
-rw-r--r--py/objslice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objslice.c b/py/objslice.c
index 290c29150..c65c30601 100644
--- a/py/objslice.c
+++ b/py/objslice.c
@@ -124,7 +124,7 @@ void mp_obj_slice_indices(mp_obj_t self_in, mp_int_t length, mp_bound_slice_t *r
} else {
step = mp_obj_get_int(self->step);
if (step == 0) {
- mp_raise_ValueError(MP_ERROR_TEXT("slice step cannot be zero"));
+ mp_raise_ValueError(MP_ERROR_TEXT("slice step can't be zero"));
}
}