Skip to content

Commit cc8efbb

Browse files
albina-astrsiriak
andauthored
minor fix
Co-authored-by: Andrii Siriak <[email protected]>
1 parent 55ee441 commit cc8efbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/maths/Factorial.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class Factorial {
99
*/
1010
public static long factorial(int n) {
1111
if (n < 0) {
12-
throw new IllegalArgumentException("Input number cannot be negative!");
12+
throw new IllegalArgumentException("Input number cannot be negative");
1313
}
1414
long factorial = 1;
1515
for (int i = 1; i <= n; ++i) {

0 commit comments

Comments
 (0)