mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 17:09:59 +00:00
var to const when posssible
This commit is contained in:
@@ -29,7 +29,7 @@ pub fn main() void {
|
||||
|
||||
// Please threaten the result so that answer is either the
|
||||
// integer value from deepThought() OR the number 42:
|
||||
var answer: u8 = result;
|
||||
const answer: u8 = result;
|
||||
|
||||
std.debug.print("The Ultimate Answer: {}.\n", .{answer});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user