mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: fix 2 unused var warnings
This commit is contained in:
parent
7f4cf08516
commit
4a70d2fe51
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ fn greet_func(cmd cli.Command) {
|
|||
language := cmd.flags.get_string('language') or { panic('failed to get \'language\' flag: $err') }
|
||||
times := cmd.flags.get_int('times') or { panic('failed to get \'times\' flag: $err') }
|
||||
|
||||
for i in 0..times {
|
||||
for _ in 0..times {
|
||||
match language {
|
||||
'english' { println('Hello World') }
|
||||
'german' { println('Hallo Welt') }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue