summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exercises/02_functions/functions5.rs2
-rw-r--r--solutions/02_functions/functions5.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/02_functions/functions5.rs b/exercises/02_functions/functions5.rs
index 31fd057..34a2ac7 100644
--- a/exercises/02_functions/functions5.rs
+++ b/exercises/02_functions/functions5.rs
@@ -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 {
num * num;
}
diff --git a/solutions/02_functions/functions5.rs b/solutions/02_functions/functions5.rs
index 0335418..677f327 100644
--- a/solutions/02_functions/functions5.rs
+++ b/solutions/02_functions/functions5.rs
@@ -1,5 +1,5 @@
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
}