diff --git a/source/chapter2/06_Functions.md b/source/chapter2/06_Functions.md index 78cdc8f1..87d22485 100755 --- a/source/chapter2/06_Functions.md +++ b/source/chapter2/06_Functions.md @@ -562,7 +562,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)... ")