var to const when posssible
This commit is contained in:
parent
1b1d6b020b
commit
533c8e217d
16 changed files with 27 additions and 27 deletions
|
|
@ -78,7 +78,7 @@ pub fn main() void {
|
|||
};
|
||||
|
||||
var aliens_alive = aliens.len;
|
||||
var heat_ray = HeatRay{ .damage = 7 }; // We've been given a heat ray weapon.
|
||||
const heat_ray = HeatRay{ .damage = 7 }; // We've been given a heat ray weapon.
|
||||
|
||||
// We'll keep checking to see if we've killed all the aliens yet.
|
||||
while (aliens_alive > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue