018_functions.patch 395 B

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