From 33b03449d5578f4e8b329b75e0d7b83eec66f4ed Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 4 Apr 2020 16:39:08 +0200 Subject: [PATCH] tools: remove vnames.v for now --- cmd/tools/vnames.v | 4 ++++ vlib/flag/flag.v | 8 ++++---- vlib/v/checker/checker.v | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cmd/tools/vnames.v b/cmd/tools/vnames.v index aca3e2d7f2..66fd42fbaa 100644 --- a/cmd/tools/vnames.v +++ b/cmd/tools/vnames.v @@ -1,5 +1,7 @@ module main +/* +QTODO import ( os flag @@ -83,3 +85,5 @@ fn main(){ analyze_v_file(file) } } +*/ +fn main() {} diff --git a/vlib/flag/flag.v b/vlib/flag/flag.v index 99ebdd1791..43b2af92c2 100644 --- a/vlib/flag/flag.v +++ b/vlib/flag/flag.v @@ -88,7 +88,7 @@ pub struct FlagParser { pub const ( // used for formating usage message - SPACE = ' ' + space = ' ' UNDERLINE = '-----------------------------------------------' MAX_ARGS_NUMBER = 4048 ) @@ -447,10 +447,10 @@ pub fn (fs FlagParser) usage() string { } } option_names := ' ' + onames.join(', ') - space := if option_names.len > SPACE.len-2 { - '\n${SPACE}' + space := if option_names.len > space.len-2 { + '\n${space}' } else { - SPACE[option_names.len..] + space[option_names.len..] } use += '${option_names}${space}${f.usage}\n' } diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 7977863645..ec0cb7dc79 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -355,7 +355,7 @@ pub fn (c mut Checker) call_expr(call_expr mut ast.CallExpr) table.Type { } if typ_sym.kind == .array_fixed {} // println('fixed') - c.error('!cannot use type `$typ_sym.str()` as type `$arg_typ_sym.str()` in argument ${i+1} to `$fn_name`', call_expr.pos) + c.error('cannot use type `$typ_sym.str()` as type `$arg_typ_sym.str()` in argument ${i+1} to `$fn_name`', call_expr.pos) } } return f.return_type