Skip to content

Commit d64601a

Browse files
nik-revmao-sz
andauthored
fix(pascal): typo
Co-authored-by: MaoShizhong <[email protected]>
1 parent ca43c00 commit d64601a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

19_pascal/solution/pascal-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const pascal = function (counter, currentLine = [1]) {
2020

2121
// If a given line of the pascal's triangle has an even amount of elements, two things are true:
2222
// - the next line will have an odd amount of elements
23-
// - the two elements in the middle will always be the same. So we are save to remove one
23+
// - the two elements in the middle will always be the same. So it's safe to remove one
2424
if (currentLine.length % 2 === 0) {
2525
joined.splice(joined.length / 2, 1);
2626
}

0 commit comments

Comments
 (0)