019
This commit is contained in:
parent
ce1e0070c3
commit
60d409a630
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ pub fn main() void {
|
||||||
// You'll need to figure out the parameter name and type that we're
|
// You'll need to figure out the parameter name and type that we're
|
||||||
// expecting. The output type has already been specified for you.
|
// 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);
|
return std.math.pow(u32, 2, my_number);
|
||||||
// std.math.pow(type, a, b) takes a numeric type and two
|
// std.math.pow(type, a, b) takes a numeric type and two
|
||||||
// numbers of that type (or that can coerce to that type) and
|
// numbers of that type (or that can coerce to that type) and
|
||||||
|
|
Loading…
Add table
Reference in a new issue