aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter1_functions/lesson09_documentation_comments/code.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/chapter1_functions/lesson09_documentation_comments/code.gleam')
-rw-r--r--src/content/chapter1_functions/lesson09_documentation_comments/code.gleam8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/chapter1_functions/lesson09_documentation_comments/code.gleam b/src/content/chapter1_functions/lesson09_documentation_comments/code.gleam
index a84dce6..a29875f 100644
--- a/src/content/chapter1_functions/lesson09_documentation_comments/code.gleam
+++ b/src/content/chapter1_functions/lesson09_documentation_comments/code.gleam
@@ -8,12 +8,12 @@ pub type Never {
/// Call a function twice with an initial value.
///
-pub fn twice(argument: value, function: fn(value) -> value) -> value {
- function(function(argument))
+pub fn twice(argument: value, my_function: fn(value) -> value) -> value {
+ my_function(my_function(argument))
}
/// Call a function three times with an initial value.
///
-pub fn thrice(argument: value, function: fn(value) -> value) -> value {
- function(function(function(argument)))
+pub fn thrice(argument: value, my_function: fn(value) -> value) -> value {
+ my_function(my_function(my_function(argument)))
}