Skip to content

Commit 53bfec7

Browse files
committed
Updating Code #475
1 parent aeb081b commit 53bfec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/multi_threaded_algorithms/fibonacci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Fibonacci:
1313

1414
def __init__(self, n, backend='python'):
1515
if n<0:
16-
raise ValueError("n cannot be negative")
16+
raise ValueError("n cannot be negative") # Checking invalid input
1717
self.n = n
1818
self.backend = backend
1919
self.result = [None] * (n + 1) # To store Fibonacci numbers

0 commit comments

Comments
 (0)