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

@@ -23,12 +23,12 @@ fn play_sounds(files []string) ! {
player.init()
for f in files {
if !os.exists(f) || os.is_dir(f) {
eprintln('skipping "$f" (does not exist)')
eprintln('skipping "${f}" (does not exist)')
continue
}
fext := os.file_ext(f).to_lower()
if fext != '.wav' {
eprintln('skipping "$f" (not a .wav file)')
eprintln('skipping "${f}" (not a .wav file)')
continue
}
player.play_wav_file(f)!
@@ -66,7 +66,7 @@ fn (mut p Player) stop() {
}
fn (mut p Player) play_wav_file(fpath string) ! {
println('> play_wav_file: $fpath')
println('> play_wav_file: ${fpath}')
samples := read_wav_file_samples(fpath)!
p.finished = true
p.samples << samples