Skip to content

Commit c9ead96

Browse files
[3.13] gh-125383: Update fib function comment for accuracy (GH-125386) (#125395)
gh-125383: Update `fib` function comment for accuracy (GH-125386) `Doc/tutorial/controlflow.rst`: fix comment for `fib` function (cherry picked from commit 283ea5f) Co-authored-by: Wulian <[email protected]>
1 parent b7dff85 commit c9ead96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/controlflow.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ Defining Functions
461461
We can create a function that writes the Fibonacci series to an arbitrary
462462
boundary::
463463

464-
>>> def fib(n): # write Fibonacci series up to n
465-
... """Print a Fibonacci series up to n."""
464+
>>> def fib(n): # write Fibonacci series less than n
465+
... """Print a Fibonacci series less than n."""
466466
... a, b = 0, 1
467467
... while a < n:
468468
... print(a, end=' ')

0 commit comments

Comments
 (0)