aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter1_functions/lesson06_generic_functions
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/chapter1_functions/lesson06_generic_functions')
-rw-r--r--src/content/chapter1_functions/lesson06_generic_functions/code.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam
index 7b7c8db..db53efe 100644
--- a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam
+++ b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam
@@ -15,6 +15,6 @@ pub fn main() {
}
// The name `value` refers to the same type multiple times
-fn twice(argument: value, function: fn(value) -> value) -> value {
- function(function(argument))
+fn twice(argument: value, my_function: fn(value) -> value) -> value {
+ my_function(my_function(argument))
}