From 13ca259355e90d135c1d1055d4ed17ce2aa7c1e3 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 14 Mar 2024 18:42:00 +0000 Subject: Remove functions Closes https://github.com/gleam-lang/language-tour/issues/52 --- .../chapter1_functions/lesson09_documentation_comments/code.gleam | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/content/chapter1_functions/lesson09_documentation_comments/code.gleam') 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))) } -- cgit v1.2.3