mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 09:00:00 +00:00
var to const when posssible
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
15c15
|
||||
< var b: u32 = addTwenty(4) ??? 22;
|
||||
< const b: u32 = addTwenty(4) ??? 22;
|
||||
---
|
||||
> var b: u32 = addTwenty(4) catch 22;
|
||||
> const b: u32 = addTwenty(4) catch 22;
|
||||
22c22
|
||||
< fn addTwenty(n: u32) ??? {
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user