fix(curriculum): update hint message Pyramid step 115 (#55330)

This commit is contained in:
Supravisor
2024-06-27 04:37:37 +12:00
committed by GitHub
parent 1b4a2707ff
commit d4d0450fd9

View File

@@ -17,7 +17,7 @@ You should call the `.push()` method of `rows` in your `else` block.
assert.match(__helpers.removeJSComments(code), /if\s*\(\s*inverted\s*\)\s*\{\s*rows\.unshift\(\s*padRow\(\s*i\s*,\s*count\s*\)\s*\);\s*\}\s*else\s*\{\s*rows\.push\(\s*/);
```
You should pass a `padRow()` call as the argument for your `.unshift()` method.
You should pass a `padRow()` call as the argument for your `.push()` method.
```js
assert.match(__helpers.removeJSComments(code), /if\s*\(\s*inverted\s*\)\s*\{\s*rows\.unshift\(\s*padRow\(\s*i\s*,\s*count\s*\)\s*\);\s*\}\s*else\s*\{\s*rows\.push\(\s*padRow\(/);