mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
11 lines
527 B
Diff
11 lines
527 B
Diff
--- exercises/019_functions2.zig 2023-10-03 22:15:22.122241138 +0200
|
|
+++ answers/019_functions2.zig 2023-10-05 20:04:06.926097780 +0200
|
|
@@ -22,7 +22,7 @@
|
|
// You'll need to figure out the parameter name and type that we're
|
|
// expecting. The output type has already been specified for you.
|
|
//
|
|
-fn twoToThe(???) u32 {
|
|
+fn twoToThe(my_number: u32) u32 {
|
|
return std.math.pow(u32, 2, my_number);
|
|
// std.math.pow(type, a, b) takes a numeric type and two
|
|
// numbers of that type (or that can coerce to that type) and
|