This commit is contained in:
2026-06-04 15:03:31 +02:00
parent 77e39463d4
commit b8ba0dbb54
6 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ pub fn main() void {
fn printAnimal(animal: u8) void {
std.debug.print("(", .{});
std.debug.print(") ", .{}); // <---- how?!
defer std.debug.print(") ", .{}); // <---- how?!
if (animal == 'g') {
std.debug.print("Goat", .{});
@@ -51,9 +51,9 @@ fn calculateTheUltimateQuestionOfLife() u32 {
// Try reordering the statements to get the answer 42
{
defer x = x / 10;
defer x = x + 11;
defer x = x * 2;
defer x = x + 11;
defer x = x / 10;
}
return x;