summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/mpconfig.h2
-rw-r--r--py/parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index bde8dfb9ef..ed42fbccc1 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -178,7 +178,7 @@
#endif
// Whether to build functions that print debugging info:
-// mp_token_show
+// mp_lexer_show_token
// mp_bytecode_print
// mp_parse_node_print
#ifndef MICROPY_DEBUG_PRINTERS
diff --git a/py/parse.c b/py/parse.c
index 6223968f5d..3f704317e2 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -782,7 +782,7 @@ syntax_error:
// debugging: print the rule name that failed and the token
printf("rule: %s\n", rule->rule_name);
#if MICROPY_DEBUG_PRINTERS
- mp_token_show(lex);
+ mp_lexer_show_token(lex);
#endif
#endif
}