var to const when posssible
This commit is contained in:
parent
1b1d6b020b
commit
533c8e217d
16 changed files with 27 additions and 27 deletions
|
|
@ -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});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue