From 110ae91dd51f436a00b84d0de0efb9a6ce2c23e0 Mon Sep 17 00:00:00 2001 From: stephen-hero <78870893+stephen-hero@users.noreply.github.com> Date: Sat, 23 Dec 2023 03:00:22 +0200 Subject: [PATCH] Update task.md language in hints checked --- wordsGeneratorServer/wordsGeneratorServerWord/task.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() {