mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 00:50:00 +00:00
unused consts now errors
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
36a37
|
||||
35a36
|
||||
> MyNumberError.TooSmall => std.debug.print("<4. ", .{}),
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
95c95
|
||||
90c90
|
||||
< const print = ???;
|
||||
---
|
||||
> const print = std.debug.print;
|
||||
160c160
|
||||
155c155
|
||||
< levelUp(glorp, reward_xp);
|
||||
---
|
||||
> levelUp(&glorp, reward_xp);
|
||||
166c166
|
||||
161c161
|
||||
< fn levelUp(character_access: Character, xp: u32) void {
|
||||
---
|
||||
> fn levelUp(character_access: *Character, xp: u32) void {
|
||||
|
||||
Reference in New Issue
Block a user