Skip to content

Commit 00c596d

Browse files
[3.12] gh-125383: Update fib function comment for accuracy (GH-125386) (#125396)
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 a144037 commit 00c596d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 2 deletions
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)