You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ziglings/patches/patches/018_functions.patch

11 lines
395 B
Diff

--- exercises/018_functions.zig 2023-10-03 22:15:22.122241138 +0200
+++ answers/018_functions.zig 2023-10-05 20:04:06.922764386 +0200
@@ -25,6 +25,6 @@
// We're just missing a couple things. One thing we're NOT missing is the
// keyword "pub", which is not needed here. Can you guess why?
//
-??? deepThought() ??? {
+fn deepThought() u8 {
return 42; // Number courtesy Douglas Adams
}