summaryrefslogtreecommitdiff
path: root/exercises/functions/functions5.rs
diff options
context:
space:
mode:
authorRussell Cousineau <miller.time.baby@gmail.com>2019-06-06 19:52:42 -0700
committerRussell Cousineau <miller.time.baby@gmail.com>2019-06-11 07:14:43 -0700
commiteb13c2b6afd4ae22370698561478e27c8633a918 (patch)
tree4cc1d9d35aacb444ab014bc2073696298cf3e2be /exercises/functions/functions5.rs
parentb8d59d699bed76b6be95d1ed41881d00d4b0d533 (diff)
chore: Clean up some formatting in exercises
Diffstat (limited to 'exercises/functions/functions5.rs')
-rw-r--r--exercises/functions/functions5.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/functions/functions5.rs b/exercises/functions/functions5.rs
index d3ff002..d9227c9 100644
--- a/exercises/functions/functions5.rs
+++ b/exercises/functions/functions5.rs
@@ -40,7 +40,7 @@ fn square(num: i32) -> i32 {
// This is a really common error that can be fixed by removing one character.
// It happens because Rust distinguishes between expressions and statements: expressions return
-// a value based on its operand, and statements simply return a () type which behaves just like `void` in C/C++ language.
+// a value based on its operand, and statements simply return a () type which behaves just like `void` in C/C++ language.
// We want to return a value of `i32` type from the `square` function, but it is returning a `()` type...
// They are not the same. There are two solutions:
// 1. Add a `return` ahead of `num * num;`