mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: fix consts example
This commit is contained in:

committed by
Alexander Medvednikov

parent
11aa5343b2
commit
bf6b206fca
@@ -758,7 +758,7 @@ struct Color {
|
|||||||
b int
|
b int
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (c Color) str() string { return '{$c.r, $c.g, $c.b}' }
|
pub fn (c Color) str() string { return '{$c.r, $c.g, $c.b}' }
|
||||||
|
|
||||||
fn rgb(r, g, b int) Color { return Color{r: r, g: g, b: b} }
|
fn rgb(r, g, b int) Color { return Color{r: r, g: g, b: b} }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user