Skip to content

Commit c76a231

Browse files
committed
Updating proof solution
1 parent 100b230 commit c76a231

File tree

1 file changed

+3
-3
lines changed
  • exercises/practice/largest-series-product/.meta

1 file changed

+3
-3
lines changed

exercises/practice/largest-series-product/.meta/proof.ci.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ export const largestProduct = (digits, seriesLength) => {
33
return 1;
44
}
55
if (seriesLength > digits.length) {
6-
throw new Error('Span must be smaller than string length');
6+
throw new Error('span must be smaller than string length');
77
}
88
if (seriesLength < 0) {
9-
throw new Error('Span must be greater than zero');
9+
throw new Error('span must not be negative');
1010
}
1111

1212
if (!/^[0-9]+$/g.test(digits)) {
13-
throw new Error('Digits input must only contain digits');
13+
throw new Error('digits input must only contain digits');
1414
}
1515

1616
let result = 0;

0 commit comments

Comments
 (0)