summaryrefslogtreecommitdiff
path: root/doc/tutorial/describing-code.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/describing-code.rst')
-rw-r--r--doc/tutorial/describing-code.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial/describing-code.rst b/doc/tutorial/describing-code.rst
index a34810f40..d57b48261 100644
--- a/doc/tutorial/describing-code.rst
+++ b/doc/tutorial/describing-code.rst
@@ -178,7 +178,7 @@ function ``get_random_ingredients`` like this:
.. code-block:: python
:caption: lumache.py
- def get_random_ingredients():
+ def get_random_ingredients(kind=None):
return ["eggs", "bacon", "spam"]
You can now run ``make doctest`` to execute the doctests of your documentation.
@@ -214,7 +214,7 @@ for easy examination. It is now time to fix the function:
:caption: lumache.py
:emphasize-lines: 2
- def get_random_ingredients():
+ def get_random_ingredients(kind=None):
return ["shells", "gorgonzola", "parsley"]
And finally, ``make test`` reports success!