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

vlib: run vfmt over vlib files, so that v doc -m vlib/ can run without warnings

This commit is contained in:
Delyan Angelov
2020-10-21 12:23:03 +03:00
parent 5b1ab3b0bb
commit dab66593fc
27 changed files with 343 additions and 334 deletions

View File

@ -160,7 +160,7 @@ fn has_command(cmd cli.Command, name string) bool {
return false
}
fn compare_arrays(array0, array1 []string) bool {
fn compare_arrays(array0 []string, array1 []string) bool {
if array0.len != array1.len {
return false
}

View File

@ -93,7 +93,7 @@ pub fn (flags []Flag) get_string(name string) ?string {
return flag.get_string()
}
pub fn (flags []Flag) get_string_or(name, or_value string) string {
pub fn (flags []Flag) get_string_or(name string, or_value string) string {
value := flags.get_string(name) or {
return or_value
}

View File

@ -165,7 +165,7 @@ fn pretty_description(s string, indent_len int) string {
return acc.str()
}
fn max(a, b int) int {
fn max(a int, b int) int {
res := if a > b { a } else { b }
return res
}