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

@@ -248,7 +248,7 @@ pub fn (c Color) eq(c2 Color) bool {
// str returns a string representation of the Color `c`
pub fn (c Color) str() string {
return 'Color{$c.r, $c.g, $c.b, $c.a}'
return 'Color{${c.r}, ${c.g}, ${c.b}, ${c.a}}'
}
// rgba8 - convert a color value to an int in the RGBA8 order.
@@ -305,5 +305,5 @@ pub fn color_from_string(s string) Color {
// to_css_string returns a CSS compatible string e.g. `rgba(10,11,12,13)` of the color `c`.
pub fn (c Color) to_css_string() string {
return 'rgba($c.r,$c.g,$c.b,$c.a)'
return 'rgba(${c.r},${c.g},${c.b},${c.a})'
}

View File

@@ -31,5 +31,5 @@ pub fn (cfg TextCfg) to_css_string() string {
if cfg.italic {
font_style += 'italic '
}
return '$font_style ${cfg.size}px $cfg.family'
return '${font_style} ${cfg.size}px ${cfg.family}'
}