Skip to content

Commit 2b20753

Browse files
Clarify in the example what "strip indentation" means
1 parent 4ba5a5a commit 2b20753

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,14 +1047,20 @@ Here is an example of a multi-line docstring::
10471047
>>> def my_function():
10481048
... """Do nothing, but document it.
10491049
...
1050-
... No, really, it doesn't do anything.
1050+
... No, really, it doesn't do anything:
1051+
...
1052+
... >>> my_function()
1053+
... >>>
10511054
... """
10521055
... pass
10531056
...
10541057
>>> print(my_function.__doc__)
10551058
Do nothing, but document it.
10561059

1057-
No, really, it doesn't do anything.
1060+
No, really, it doesn't do anything:
1061+
1062+
>>> my_function()
1063+
>>>
10581064

10591065

10601066
.. _tut-annotations:

0 commit comments

Comments
 (0)