From 3caef4e7d6fc65b867544788884f7b9378a6d332 Mon Sep 17 00:00:00 2001 From: betseg Date: Fri, 8 Mar 2019 22:14:08 +0000 Subject: [PATCH] Update 'examples/higher-order-functions.jt' --- examples/higher-order-functions.jt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/higher-order-functions.jt b/examples/higher-order-functions.jt index 6cf325a..34776dd 100644 --- a/examples/higher-order-functions.jt +++ b/examples/higher-order-functions.jt @@ -3,7 +3,7 @@ import io // takes a function that receives two ints, returns an int // Func is the function type keyword, to not switch it with fn (which declares // a function) -fn function_tester (Func function ([int, int] -> int)) -> int { +fn function_tester (Func func ([int, int] -> int)) -> int { func(2, 2) }