Skip to content

Commit d4ac9cc

Browse files
committed
DOC: Fix Fibonacci docstrings
1 parent 5135344 commit d4ac9cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octue/twined/resources/example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
def calculate_fibonacci_sequence(n):
88
"""Run an example analysis that calculates the first `n` values of the Fibonacci sequence.
99
10-
:param int n: the number of values in the Fibonacci sequence to calculate the value of (must be more than 0)
11-
:return (dict, str): the result event and a random question UUID
10+
:param int n: the number of values in the Fibonacci sequence to calculate (must be >= 0)
11+
:return list(int): the sequence
1212
"""
1313
error_message = f"`n` must be an integer >= 0. Received {n!r}."
1414

@@ -28,7 +28,7 @@ def calculate_fibonacci_sequence(n):
2828
def _calculate_fibonacci_value(n):
2929
"""Calculate the nth value of the Fibonacci sequence.
3030
31-
:param int n: the position in the sequence to calculate the value of (must be more than 0)
31+
:param int n: the position in the sequence to calculate the value of (must be >= 0)
3232
:return int: the value of the sequence at the nth position
3333
"""
3434
if n == 0:

0 commit comments

Comments
 (0)