diff --git a/wordsGeneratorServer/wordsGeneratorServerWord/task.md b/wordsGeneratorServer/wordsGeneratorServerWord/task.md index 9c03e6ae..1f7da838 100644 --- a/wordsGeneratorServer/wordsGeneratorServerWord/task.md +++ b/wordsGeneratorServer/wordsGeneratorServerWord/task.md @@ -30,13 +30,13 @@ choose the option you like best in the future.
-We cannot mark the `numberOfWords` variable with the `const` keyword, since we use `words.size` of a mutable list `words`, -which potentially can be changed. +We cannot mark the `numberOfWords` variable with the `const` keyword, since we use `words.size` from the mutable list `words`, +which can potentially be altered.
-If you need to check whether a list is empty or not, you can check its size or use the built-in [isEmpty](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/is-empty.html) function: +If you need to check whether a list is empty or not, you can either check its size or use the built-in [isEmpty](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/is-empty.html) function: ```kotlin val numbers = listOf(1, 2, 3) @@ -56,7 +56,7 @@ It is the **same** as
-If you need to get the first element from a mutable list and next remove it, you can use the built-in [removeFirst](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/remove-first.html) function: +If you need to get the first element from a mutable list and then remove it, you can use the built-in [removeFirst](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/remove-first.html) function: ```kotlin fun main() {