From 1bcc45f914a5f9730e991cbe1c6364a3a5f44b5e Mon Sep 17 00:00:00 2001 From: yuyi Date: Sat, 10 Apr 2021 16:55:34 +0800 Subject: [PATCH] cgen: minor cleanup of return_stmt (#9664) --- vlib/v/gen/c/cgen.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 3e2589eda9..7c912f03da 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -1232,7 +1232,7 @@ fn (mut g Gen) stmt(node ast.Stmt) { g.writeln('// ast.Return free_end2') } */ - g.return_statement(node) + g.return_stmt(node) } ast.SqlStmt { g.sql_stmt(node) @@ -4630,7 +4630,7 @@ fn (mut g Gen) gen_optional_error(target_type ast.Type, expr ast.Expr) { g.write(' }') } -fn (mut g Gen) return_statement(node ast.Return) { +fn (mut g Gen) return_stmt(node ast.Return) { g.write_v_source_line_info(node.pos) if node.exprs.len > 0 { // skip `retun $vweb.html()`