Permalink
Browse files

Merge pull request #58 from icarumbas/patch-1

Changed "Int" to "лист"
  • Loading branch information...
phplego committed Nov 5, 2017
2 parents de559aa + 868f329 commit 36319d0135039919a5e5b0e8f611cc5494c531dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions.md
View
@@ -23,7 +23,7 @@ The following adds a `swap` function to `MutableList<Int>`:-->
``` kotlin
fun MutableList<Int>.swap(index1: Int, index2: Int) {
val tmp = this[index1] // 'this' даёт ссылку на Int
val tmp = this[index1] // 'this' даёт ссылку на лист
this[index1] = this[index2]
this[index2] = tmp
}

0 comments on commit 36319d0

Please sign in to comment.