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

vfmt: make ${} more robust; require it for every interpolation that uses '...' or "..."

This commit is contained in:
Delyan Angelov
2021-04-15 09:13:43 +03:00
parent 4ecc5001b9
commit f1549b3ee7
4 changed files with 11 additions and 4 deletions

View File

@ -200,7 +200,7 @@ pub fn (b &Benchmark) total_message(msg string) string {
if b.nskip > 0 {
tmsg += term.colorize(term.bold, term.colorize(term.yellow, '$b.nskip skipped')) + ', '
}
tmsg += '$b.ntotal total. ${term.colorize(term.bold, 'Runtime:')} ${b.bench_timer.elapsed().microseconds() / 1000} ms.\n'
tmsg += '${b.ntotal} total. ${term.colorize(term.bold, 'Runtime:')} ${b.bench_timer.elapsed().microseconds() / 1000} ms.\n'
return tmsg
}