1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples,tools: cleanup most warnings

This commit is contained in:
Delyan Angelov
2020-12-04 16:05:39 +02:00
parent 7a8d6a7c7b
commit 3f2133c65e
4 changed files with 4 additions and 5 deletions

View File

@ -27,7 +27,7 @@ pub fn validate_commit_exists(commit string) {
if commit.len == 0 {
return
}
cmd := "git cat-file -t \'$commit\' "
cmd := "git cat-file -t '$commit' "
if !scripting.exit_0_status(cmd) {
eprintln('Commit: "$commit" does not exist in the current repository.')
exit(3)

View File

@ -259,7 +259,7 @@ compdef _v v
mut lines := []string{}
list := auto_complete_request(sub_args[1..])
for entry in list {
lines << "COMPREPLY+=(\'$entry\')"
lines << "COMPREPLY+=('$entry')"
}
println(lines.join('\n'))
}
@ -281,7 +281,7 @@ compdef _v v
mut lines := []string{}
list := auto_complete_request(sub_args[1..])
for entry in list {
lines << 'compadd -U -S \"\" -- \'$entry\';'
lines << "compadd -U -S \"\" -- '$entry';"
}
println(lines.join('\n'))
}