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

@@ -108,7 +108,7 @@ pub fn open_file(path string, mode string, options ...int) !File {
fdopen_mode := mode.replace('b', '')
cfile := C.fdopen(fd, &char(fdopen_mode.str))
if isnil(cfile) {
return error('Failed to open or create file "$path"')
return error('Failed to open or create file "${path}"')
}
if seek_to_end {
// ensure appending will work, even on bsd/macos systems:
@@ -227,7 +227,7 @@ pub fn (mut f File) reopen(path string, mode string) ! {
cfile = C.freopen(&char(p.str), &char(mode.str), f.cfile)
}
if isnil(cfile) {
return error('Failed to reopen file "$path"')
return error('Failed to reopen file "${path}"')
}
f.cfile = cfile
}