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

vfmt: change all '$expr' to '${expr}' (#16428)

This commit is contained in:
yuyi
2022-11-15 21:53:13 +08:00
committed by GitHub
parent 56239b4a23
commit 017ace6ea7
859 changed files with 7156 additions and 7135 deletions

View File

@ -93,7 +93,7 @@ fn (mut p Process) _spawn() int {
p.env = []string{}
current_environment := environ()
for k, v in current_environment {
p.env << '$k=$v'
p.env << '${k}=${v}'
}
}
mut pid := 0
@ -177,7 +177,7 @@ pub fn (mut p Process) stderr_read() string {
// _check_redirection_call - should be called just by stdxxx methods
fn (mut p Process) _check_redirection_call(fn_name string) {
if !p.use_stdio_ctl {
panic('Call p.set_redirect_stdio() before calling p.$fn_name')
panic('Call p.set_redirect_stdio() before calling p.${fn_name}')
}
if p.status == .not_started {
panic('Call p.${fn_name}() after you have called p.run()')