From fb385813cf686c1ccea9815d6d9167adbc645d8f Mon Sep 17 00:00:00 2001 From: Carol Hsu Date: Wed, 23 Jul 2014 19:29:02 +0800 Subject: [PATCH] fixed typo --- source/chapter2/06_Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/06_Functions.md b/source/chapter2/06_Functions.md index 6044472f..af4c47b0 100755 --- a/source/chapter2/06_Functions.md +++ b/source/chapter2/06_Functions.md @@ -558,7 +558,7 @@ func chooseStepFunction(backwards: Bool) -> (Int) -> Int { return backwards ? stepBackward : stepForward } var currentValue = -4 -let moveNearerToZero = chooseStepFunction(currentValue > 0) +let moveNearerToZero = chooseStepFunction(currentValue < 0) // moveNearerToZero now refers to the nested stepForward() function while currentValue != 0 { println("\(currentValue)... ")