mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: use v fmt -w "$p.scanner.file_path"
in warns, easing fixing
This commit is contained in:
parent
bba79194e7
commit
2c4a51a596
@ -552,7 +552,7 @@ fn (mut p Parser) fn_args() ([]table.Param, bool, bool) {
|
||||
for p.tok.kind == .comma {
|
||||
if !p.pref.is_fmt {
|
||||
p.warn('`fn f(x, y Type)` syntax has been deprecated and will soon be removed. ' +
|
||||
'Use `fn f(x Type, y Type)` instead. You can run `v fmt -w file.v` to automatically fix your code.')
|
||||
'Use `fn f(x Type, y Type)` instead. You can run `v fmt -w "$p.scanner.file_path"` to automatically fix your code.')
|
||||
}
|
||||
p.next()
|
||||
arg_pos << p.tok.position()
|
||||
|
Loading…
Reference in New Issue
Block a user