This commit is contained in:
chenhao
2016-01-19 17:14:19 +08:00
parent d45fb7a362
commit 64ea022b1b

View File

@ -76,7 +76,7 @@ println(sayHelloAgain("Anna"))
func halfOpenRangeLength(start: Int, end: Int) -> Int {
return end - start
}
println(halfOpenRangeLength(1, 10))
println(halfOpenRangeLength(1, end:10))
// prints "9"
```