FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-125383: Update `fib` function comment for accuracy (#125386) · faster-cpython/cpython@283ea5f · GitHub

Repository navigation

Commit 283ea5f

Browse files
authored
pythongh-125383: Update fib function comment for accuracy (python#125386)
`Doc/tutorial/controlflow.rst`: fix comment for `fib` function
1 parent ce740d4 commit 283ea5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL