use const for variables that are never modified
This commit is contained in:
parent
ef9bdb1382
commit
669d4f7337
4 changed files with 6 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ const MyNumberError = error{
|
|||
const std = @import("std");
|
||||
|
||||
pub fn main() void {
|
||||
var nums = [_]u8{ 2, 3, 4, 5, 6 };
|
||||
const nums = [_]u8{ 2, 3, 4, 5, 6 };
|
||||
|
||||
for (nums) |n| {
|
||||
std.debug.print("{}", .{n});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue