https://github.com/python/cpython/commit/283ea5f3b2b6a18605b8598a979afe263b0f21ce
commit: 283ea5f3b2b6a18605b8598a979afe263b0f21ce
branch: main
author: Wulian <[email protected]>
committer: Eclips4 <[email protected]>
date: 2024-10-13T14:10:59+03:00
summary:

gh-125383: Update `fib` function comment for accuracy (#125386)

`Doc/tutorial/controlflow.rst`: fix comment for `fib` function

files:
M Doc/tutorial/controlflow.rst

diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 9b73ac475c78d5..b830ce94ba4f47 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -461,8 +461,8 @@ Defining Functions
 We can create a function that writes the Fibonacci series to an arbitrary
 boundary::
 
-   >>> def fib(n):    # write Fibonacci series up to n
-   ...     """Print a Fibonacci series up to n."""
+   >>> def fib(n):    # write Fibonacci series less than n
+   ...     """Print a Fibonacci series less than n."""
    ...     a, b = 0, 1
    ...     while a < n:
    ...         print(a, end=' ')

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to