From c4758c21c6c220f91cc94c382b54b31e8a8dff7a Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Fri, 29 Jan 2021 19:20:48 +0530 Subject: [PATCH] cgen: println(none) => `` (#8404) --- vlib/v/gen/str.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/str.v b/vlib/v/gen/str.v index 78e7b5aa8f..08b30b66db 100644 --- a/vlib/v/gen/str.v +++ b/vlib/v/gen/str.v @@ -324,7 +324,7 @@ fn (mut g Gen) gen_expr_to_string(expr ast.Expr, etype table.Type) { g.expr(expr) g.write(' ? _SLIT("true") : _SLIT("false")') } else if sym.kind == .none_ { - g.write('_SLIT("none")') + g.write('_SLIT("")') } else if sym.kind == .enum_ { is_var := match expr { ast.SelectorExpr, ast.Ident { true }