docs: fix consts example
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} }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue