Skip to content

Commit 9642d0c

Browse files
committed
minor changes
1 parent 961ed91 commit 9642d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/math/pascalTriangle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function pascalTriangle(lineNumber) {
55

66
for (let numIndex = 1; numIndex < currentLineSize; numIndex += 1) {
77
// See explanation of this formula in README.
8-
currentLine[numIndex] = currentLine[numIndex - 1] * (lineNumber - numIndex + 1) / numIndex;
8+
currentLine[numIndex] = (currentLine[numIndex - 1] * (lineNumber - numIndex + 1)) / numIndex;
99
}
1010

1111
return currentLine;

0 commit comments

Comments
 (0)