diff --git a/AlmostDone/safeReadLineFunction/task.md b/AlmostDone/safeReadLineFunction/task.md index e61ac25f..dc82e3f9 100644 --- a/AlmostDone/safeReadLineFunction/task.md +++ b/AlmostDone/safeReadLineFunction/task.md @@ -1,13 +1,13 @@ -In previous assignments, we sometimes used the pre-defined `safeReadLine` function instead of built-in `readlnOrNull`. +In previous assignments, we sometimes used the predefined `safeReadLine` function instead of the built-in `readlnOrNull`. The main reason is that `readlnOrNull` returns a _nullable_ value (`String?`). -The pre-defined `safeReadLine` function processed the input received from the user with the Elvis operator: -it returns the string or throws an error if the `null` value was received. -It's time to implement this function by yourself! +The pre-defined `safeReadLine` function processed the user's input with the Elvis operator: +it returns the string or throws an error if a `null` value was received. +Now, it's time to implement this function on your own! ### Task -Implement the `safeReadLine` function, which returns the string the user inputs or throws an error -if the `null` value was received. +Implement the `safeReadLine` function, which returns the string input by the user or throws an error +if a `null` value was received.