aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yue_ast.cpp b/src/yuescript/yue_ast.cpp
index e69dd37..83e5985 100644
--- a/src/yuescript/yue_ast.cpp
+++ b/src/yuescript/yue_ast.cpp
@@ -420,7 +420,7 @@ std::string Switch_t::to_string(void* ud) const {
420 auto info = reinterpret_cast<YueFormat*>(ud); 420 auto info = reinterpret_cast<YueFormat*>(ud);
421 str_list temp{"switch "s + target->to_string(ud)}; 421 str_list temp{"switch "s + target->to_string(ud)};
422 if (assignment) { 422 if (assignment) {
423 temp.back().append(" :"s + assignment->to_string(ud)); 423 temp.back().append(assignment->to_string(ud));
424 } 424 }
425 info->pushScope(); 425 info->pushScope();
426 for (auto branch : branches.objects()) { 426 for (auto branch : branches.objects()) {