summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorWulian <xiguawulian@gmail.com>2024-10-13 11:10:59 (GMT)
committerGitHub <noreply@github.com>2024-10-13 11:10:59 (GMT)
commit283ea5f3b2b6a18605b8598a979afe263b0f21ce (patch)
tree4f393099ddd120ecc68b750e0a08f38b2a2dce9a /Doc/tutorial
parentce740d46246b28bb675ba9d62214b59be9b8411e (diff)
downloadcpython-283ea5f3b2b6a18605b8598a979afe263b0f21ce.zip
cpython-283ea5f3b2b6a18605b8598a979afe263b0f21ce.tar.gz
cpython-283ea5f3b2b6a18605b8598a979afe263b0f21ce.tar.bz2
gh-125383: Update `fib` function comment for accuracy (#125386)
`Doc/tutorial/controlflow.rst`: fix comment for `fib` function
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 9b73ac4..b830ce9 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=' ')