docs: fix consts example

pull/3576/head
Théo Huchard 2020-01-27 15:44:02 +01:00 committed by Alexander Medvednikov
parent 11aa5343b2
commit bf6b206fca
1 changed files with 1 additions and 1 deletions

View File

@ -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} }