mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix const name warnings due to gx.White, etc...
This commit is contained in:
@@ -30,7 +30,7 @@ const (
|
||||
|
||||
[live]
|
||||
fn print_automaton(a &automaton.Automaton){
|
||||
gg.clear(gx.White)
|
||||
gg.clear(gx.white)
|
||||
square_size := 18
|
||||
for y := 1; y<a.field.maxy; y++ {
|
||||
for x := 1; x<a.field.maxx; x++ {
|
||||
|
||||
@@ -56,7 +56,7 @@ fn new_automaton(f [][]int) Automaton {
|
||||
return Automaton{ field: field new_field: new_field }
|
||||
}
|
||||
|
||||
pub fn (aa mut Automaton) update() {
|
||||
pub fn (mut aa Automaton) update() {
|
||||
aa.new_field.clear()
|
||||
for y := 1; y<aa.field.maxy; y++ {
|
||||
for x := 1; x<aa.field.maxx; x++ {
|
||||
|
||||
Reference in New Issue
Block a user