summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-07 18:06:34 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-07 18:06:34 +0000
commit3391e190680d3625a166bb6573df26e1bda30af2 (patch)
tree8a226465b63dfeaa3039e50532cd2880f17835bb /py/objstr.c
parent270112f7312f724e46ae34649dfce3ec43b697e0 (diff)
downloadmicropython-3391e190680d3625a166bb6573df26e1bda30af2.tar.gz
micropython-3391e190680d3625a166bb6573df26e1bda30af2.zip
A bit of stylistic cleanup (chose the wrong side during conflict resolution).
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objstr.c b/py/objstr.c
index b95aafe432..cc9f7f85b4 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -191,8 +191,8 @@ static const mp_method_t str_type_methods[] = {
};
const mp_obj_type_t str_type = {
- .base = { &mp_const_type },
- .name = "str",
+ { &mp_const_type },
+ "str",
.print = str_print,
.binary_op = str_binary_op,
.getiter = str_getiter,
@@ -234,8 +234,8 @@ mp_obj_t str_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t str_it_type = {
- .base = { &mp_const_type },
- .name = "str_iterator",
+ { &mp_const_type },
+ "str_iterator",
.iternext = str_it_iternext,
};