Skip to content

Commit f047e59

Browse files
committed
Added the word integer
1 parent 6a8425e commit f047e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sprint-3/2-practice-tdd/repeat-str.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
function repeatStr(str,count) {
1+
function repeatStr(str, count) {
22
if (count < 0) {
3-
throw new Error("Count must be a non-negative");
3+
throw new Error("Count must be a non-negative integer");
44
}
55
return str.repeat(count);
66
}

0 commit comments

Comments
 (0)