mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-14 00:17:16 +00:00
Fix typos
This commit is contained in:
parent
42bd0b8b75
commit
f8d38320cd
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
// TODO: Fix the function body without chaning the signature.
|
// TODO: Fix the function body without changing the signature.
|
||||||
fn square(num: i32) -> i32 {
|
fn square(num: i32) -> i32 {
|
||||||
num * num;
|
num * num;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
fn square(num: i32) -> i32 {
|
fn square(num: i32) -> i32 {
|
||||||
// Removed the semicolon `;` at the end of the line below to implicitely return the result.
|
// Removed the semicolon `;` at the end of the line below to implicitly return the result.
|
||||||
num * num
|
num * num
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue