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

remove a println()

This commit is contained in:
Alexander Medvednikov
2019-10-31 12:15:45 +03:00
parent d5cf4d6fd5
commit b1730b768d
2 changed files with 4 additions and 7 deletions

View File

@@ -75,16 +75,14 @@ pub fn (c Color) str() string {
}
pub fn (a Color) eq(b Color) bool {
return a.r == b.r &&
a.g == b.g &&
a.b == b.b
return a.r == b.r && a.g == b.g && a.b == b.b
}
pub fn rgb(r, g, b int) Color {
res := Color {
r: r,
g: g,
b: b,
r: r
g: g
b: b
}
return res
}