diff --git a/py/objslice.c b/py/objslice.c
index 1ef16ec233b9d7284c8509d87c4dfb09f4fe2b9d..d0e8e7e73e69615bb49191d559403d2e99e2605f 100644
--- a/py/objslice.c
+++ b/py/objslice.c
@@ -79,7 +79,7 @@ const mp_obj_type_t mp_type_slice = {
     .name = MP_QSTR_slice,
     .print = slice_print,
 #if MICROPY_PY_BUILTINS_SLICE_ATTRS
-	.attr = slice_attr,
+    .attr = slice_attr,
 #endif
 };