Merge pull request #282 from CarolHsu/gh-pages

fixed typo
This commit is contained in:
梁杰
2014-07-25 07:14:08 +08:00

View File

@ -558,7 +558,7 @@ func chooseStepFunction(backwards: Bool) -> (Int) -> Int {
return backwards ? stepBackward : stepForward return backwards ? stepBackward : stepForward
} }
var currentValue = -4 var currentValue = -4
let moveNearerToZero = chooseStepFunction(currentValue > 0) let moveNearerToZero = chooseStepFunction(currentValue < 0)
// moveNearerToZero now refers to the nested stepForward() function // moveNearerToZero now refers to the nested stepForward() function
while currentValue != 0 { while currentValue != 0 {
println("\(currentValue)... ") println("\(currentValue)... ")