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:
parent
d5cf4d6fd5
commit
b1730b768d
@ -843,7 +843,6 @@ pub fn new_v(args[]string) &V {
|
|||||||
// `v -o dir/exec`, create "dir/" if it doesn't exist
|
// `v -o dir/exec`, create "dir/" if it doesn't exist
|
||||||
if out_name.contains(os.path_separator) {
|
if out_name.contains(os.path_separator) {
|
||||||
d := out_name.all_before_last(os.path_separator)
|
d := out_name.all_before_last(os.path_separator)
|
||||||
println('DIRRR ' + d)
|
|
||||||
if !os.dir_exists(d) {
|
if !os.dir_exists(d) {
|
||||||
println('creating a new directory "$d"')
|
println('creating a new directory "$d"')
|
||||||
os.mkdir(d)
|
os.mkdir(d)
|
||||||
|
10
vlib/gx/gx.v
10
vlib/gx/gx.v
@ -75,16 +75,14 @@ pub fn (c Color) str() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn (a Color) eq(b Color) bool {
|
pub fn (a Color) eq(b Color) bool {
|
||||||
return a.r == b.r &&
|
return a.r == b.r && a.g == b.g && a.b == b.b
|
||||||
a.g == b.g &&
|
|
||||||
a.b == b.b
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn rgb(r, g, b int) Color {
|
pub fn rgb(r, g, b int) Color {
|
||||||
res := Color {
|
res := Color {
|
||||||
r: r,
|
r: r
|
||||||
g: g,
|
g: g
|
||||||
b: b,
|
b: b
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user