var to const when posssible

This commit is contained in:
lording
2023-06-22 09:41:41 +00:00
parent f09a87c348
commit d2d3dfa277
16 changed files with 27 additions and 27 deletions

View File

@@ -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) {