diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-10 09:01:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-10 09:01:56 (GMT) |
commit | c499f30286976410be13c8476408531bb21631ce (patch) | |
tree | 86b8972b6663726a50d716bb13773171f1ca425a /Doc/tutorial/controlflow.rst | |
parent | a4dfbe608fb52191b435c5545e8a343586887135 (diff) | |
parent | dba903993a8d3e13d2cf83d6a8912e908025b17b (diff) | |
download | cpython-c499f30286976410be13c8476408531bb21631ce.zip cpython-c499f30286976410be13c8476408531bb21631ce.tar.gz cpython-c499f30286976410be13c8476408531bb21631ce.tar.bz2 |
Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 8453796..9a13d08 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -315,7 +315,7 @@ You can see it if you really want to using :func:`print`:: It is simple to write a function that returns a list of the numbers of the Fibonacci series, instead of printing it:: - >>> def fib2(n): # return Fibonacci series up to n + >>> def fib2(n): # return Fibonacci series up to n ... """Return a list containing the Fibonacci series up to n.""" ... result = [] ... a, b = 0, 1 @@ -543,7 +543,7 @@ parameter are 'keyword-only' arguments, meaning that they can only be used as keywords rather than positional arguments. :: >>> def concat(*args, sep="/"): - ... return sep.join(args) + ... return sep.join(args) ... >>> concat("earth", "mars", "venus") 'earth/mars/venus' |