aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam b/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
index e3fb3e7..4301ce5 100644
--- a/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
+++ b/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
@@ -9,8 +9,8 @@ pub fn main() {
io.debug(function(100))
}
-fn twice(argument: Int, function: fn(Int) -> Int) -> Int {
- function(function(argument))
+fn twice(argument: Int, passed_function: fn(Int) -> Int) -> Int {
+ passed_function(passed_function(argument))
}
fn add_one(argument: Int) -> Int {