mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 11:40:46 -05:00
adding enlightenment to 019 (for #50)
This commit is contained in:
parent
8a7d6b03c7
commit
9f71d3711e
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ pub fn main() void {
|
||||||
//
|
//
|
||||||
fn twoToThe(???) u32 {
|
fn twoToThe(???) u32 {
|
||||||
return std.math.pow(u32, 2, my_number);
|
return std.math.pow(u32, 2, my_number);
|
||||||
// std.math.pow(type, a, b) takes a numeric type and two numbers
|
// std.math.pow(type, a, b) takes a numeric type and two
|
||||||
// of that type and returns "a to the power of b" as that same
|
// numbers of that type (or that can coerce to that type) and
|
||||||
// numeric type.
|
// returns "a to the power of b" as that same numeric type.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue