From 041c198b5038f9586d6e45a7f92447619038479e Mon Sep 17 00:00:00 2001 From: stephen-hero <78870893+stephen-hero@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:37:50 +0200 Subject: [PATCH] Update task.md language checked --- AlmostDone/NullSafety/task.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AlmostDone/NullSafety/task.md b/AlmostDone/NullSafety/task.md index bba76bb6..ab42a1d3 100644 --- a/AlmostDone/NullSafety/task.md +++ b/AlmostDone/NullSafety/task.md @@ -3,8 +3,8 @@ Let's implement a function to interact with the user. ### Task Implement the `chooseFilter` function, which asks the user to choose -a filter (`borders` or `squared`, the full text is `Please choose the filter: 'borders' or 'squared'.`) -and returns it. +a filter, either `borders` or `squared`. The full text of the prompt is `Please choose the filter: 'borders' or 'squared'.` +The function should then return the chosen filter.
@@ -14,8 +14,8 @@ fun chooseFilter(): String ```
-This function has to use the `safeReadLine` function. -If the user inputs an incorrect filter name, the function should ask to input the right one `Please input 'borders' or 'squared'`: +This function must use the `safeReadLine` function. +If the user inputs an incorrect filter name, the function should prompt the user again with `Please input 'borders' or 'squared'` to ensure the correct filter is entered: ![`chooseFilter` function work](../../utils/src/main/resources/images/part1/almost.done/choose_filter.gif "`chooseFilter` function work")