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

@@ -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 });
}