We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a398e3f commit a48565cCopy full SHA for a48565c
examples/05_Collections/01_List.md
@@ -6,7 +6,7 @@ A [list](https://kotlinlang.org/docs/reference/collections.html) is an ordered c
6
val systemUsers: MutableList<Int> = mutableListOf(1, 2, 3) // 1
7
val sudoers: List<Int> = systemUsers // 2
8
9
-fun addSudoer(newUser: Int) { // 3
+fun addSystemUser(newUser: Int) { // 3
10
systemUsers.add(newUser)
11
}
12
@@ -15,7 +15,7 @@ fun getSysSudoers(): List<Int> { // 4
15
16
17
fun main() {
18
- addSudoer(4) // 5
+ addSystemUser(4) // 5
19
println("Tot sudoers: ${getSysSudoers().size}") // 6
20
getSysSudoers().forEach { // 7
21
i -> println("Some useful info on user $i")
0 commit comments