Skip to content

Commit 39a54d5

Browse files
committed
Merge pull request #600 from bhchance/patch-1
Update gotchas.rst
2 parents 2c275f3 + c3de9df commit 39a54d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/writing/gotchas.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Python's treatment of mutable default arguments in function definitions.
2323
What You Wrote
2424
~~~~~~~~~~~~~~
2525

26-
.. testcode::
26+
.. code-block:: python
2727
2828
def append_to(element, to=[]):
2929
to.append(element)
@@ -32,7 +32,7 @@ What You Wrote
3232
What You Might Have Expected to Happen
3333
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3434

35-
.. testcode::
35+
.. code-block:: python
3636
3737
my_list = append_to(12)
3838
print my_list

0 commit comments

Comments
 (0)