1
0
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:
Théo Huchard 2020-01-27 15:44:02 +01:00 committed by Alexander Medvednikov
parent 11aa5343b2
commit bf6b206fca

View File

@ -758,7 +758,7 @@ struct Color {
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} }