1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

adding enlightenment to 019 (for #50)

This commit is contained in:
Dave Gauer 2021-04-26 20:45:19 -04:00
parent fe6bf8948f
commit 05cefbfd17

View File

@ -24,7 +24,7 @@ pub fn main() void {
//
fn twoToThe(???) 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 and returns "a to the power of b" as that same
// numeric type.
// std.math.pow(type, a, b) takes a numeric type and two
// numbers of that type (or that can coerce to that type) and
// returns "a to the power of b" as that same numeric type.
}