Update 'examples/higher-order-functions.jt'

This commit is contained in:
betseg 2019-03-08 22:14:08 +00:00
parent 2d91393a1c
commit 3caef4e7d6

View file

@ -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)
}