aboutsummaryrefslogtreecommitdiff
path: root/exercises/019_functions2.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-12-09 22:07:01 +0000
committerMartin Ashby <martin@ashbysoft.com>2022-12-09 22:07:01 +0000
commit0e447c7956410a993614f9337d6219e017722443 (patch)
treec12780891cbbd14b52695df1fe336cc8981de6d9 /exercises/019_functions2.zig
parentbb5b8f115a57fc8c85ac7344fe4dc0b796e32487 (diff)
downloadziglings-0e447c7956410a993614f9337d6219e017722443.tar.gz
ziglings-0e447c7956410a993614f9337d6219e017722443.tar.bz2
ziglings-0e447c7956410a993614f9337d6219e017722443.tar.xz
ziglings-0e447c7956410a993614f9337d6219e017722443.zip
001-024 complete
Diffstat (limited to 'exercises/019_functions2.zig')
-rw-r--r--exercises/019_functions2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/019_functions2.zig b/exercises/019_functions2.zig
index a527ae2..71ede43 100644
--- a/exercises/019_functions2.zig
+++ b/exercises/019_functions2.zig
@@ -22,7 +22,7 @@ pub fn main() void {
// 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