summaryrefslogtreecommitdiff
path: root/py/objstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 66041c587..cc9f7f85b 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -189,6 +189,7 @@ static const mp_method_t str_type_methods[] = {
{ "format", &str_format_obj },
{ NULL, NULL }, // end-of-list sentinel
};
+
const mp_obj_type_t str_type = {
{ &mp_const_type },
"str",
@@ -236,7 +237,6 @@ static const mp_obj_type_t str_it_type = {
{ &mp_const_type },
"str_iterator",
.iternext = str_it_iternext,
- .methods = NULL,
};
mp_obj_t mp_obj_new_str_iterator(mp_obj_str_t *str, int cur) {