Changed usages of upto/downto in test to rangeTo and downTo, respectively.

#KT-2519 in progress
This commit is contained in:
Evgeny Gerashchenko
2012-08-07 22:07:14 +04:00
parent 662fdca034
commit a4031225d0
11 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ public object Collections {
public fun <T> reverse(list: List<T>): Unit {
val size = list.size()
for (i in 0.upto(size / 2)) {
for (i in 0.rangeTo(size / 2)) {
val i2 = size - i
val tmp = list[i]
list[i] = list[i2]