var to const when posssible

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

View file

@ -11,8 +11,8 @@ const std = @import("std");
const MyNumberError = error{TooSmall};
pub fn main() void {
var a: u32 = addTwenty(44) catch 22;
var b: u32 = addTwenty(4) ??? 22;
const a: u32 = addTwenty(44) catch 22;
const b: u32 = addTwenty(4) ??? 22;
std.debug.print("a={}, b={}\n", .{ a, b });
}