diff --git a/LastPush/CanvasGapsGenerator/task.md b/LastPush/CanvasGapsGenerator/task.md
index b58162d9..12ef6f2f 100644
--- a/LastPush/CanvasGapsGenerator/task.md
+++ b/LastPush/CanvasGapsGenerator/task.md
@@ -2,7 +2,7 @@ This step is not easy, but we believe you will solve it!
### Task
-On this step you need to implement the `canvasWithGapsGenerator` function, which accepts the `pattern`, `width`, and `height` that were inputted by the user.
+On this step, you need to implement the `canvasWithGapsGenerator` function, which accepts the `pattern`, `width`, and `height` that were inputted by the user.
This function should return a new string with a generated canvas-with-gaps picture.
@@ -14,13 +14,13 @@ fun canvasWithGapsGenerator(pattern: String, width: Int, height: Int): String
The `canvasGaps` generator should build a rectangle `width` x `height` from the pattern,
-while leaving gaps instead of every other element.
+while leaving gaps in place of every other element.
The generator works according to the following algorithm:
1) **None of the levels** of the generated image **change** the pattern;
2) The gap is a rectangle of spaces, the dimensions
of which are equal to the width and height of the initial pattern;
3) In every **odd level**, the gap should be in **even** positions,
- and in every **even level** - in **odd**;
+ and in every **even level** - in **odd** positions;
4) When repeated **vertically**, the pattern remains **unchanged**.
@@ -58,7 +58,7 @@ None of the levels of the generated image change the pattern.
The following functions will _not be checked_, but they can help you implement this project:
-- `repeatHorizontallyWithGaps`, which accepts a `pattern` and the number of times it should be repeated horizontally (n), e.g.:
+- `repeatHorizontallyWithGaps`, which accepts a `pattern` and the number of times that pattern should be repeated horizontally (n), e.g.:
```text
n = 5
○○ ○○ ○○ ○○
@@ -86,6 +86,6 @@ If you need to drop n
symbols from the beginning of a String<
In industrial programming, duplicate code is commonly avoided and put into functions.
However, it is not always possible to immediately write clear and readable code.
Try implementing the canvasGenerator
and canvasWithGapsGenerator
functions
-so that they pass all the tests and then start improving the code.
+so that they pass all the tests and then proceed with improving the code.
This process is called refactoring.