Remove [de/in]crement operator (for now)
This commit is contained in:
parent
7a1df3f58d
commit
0604818b0e
|
@ -13,7 +13,7 @@ World mut fn set_next(i32 i, i32 j) {
|
|||
if neighbors != 3 {
|
||||
0
|
||||
} else {
|
||||
numdots++;
|
||||
numdots = numdots + 1;
|
||||
1
|
||||
}
|
||||
} else {
|
||||
|
@ -21,7 +21,7 @@ World mut fn set_next(i32 i, i32 j) {
|
|||
if neighbors == 2 or neighbors == 3 {
|
||||
1
|
||||
} else {
|
||||
numdots--;
|
||||
numdots = numdots - 1;
|
||||
0
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue