Skip to content

Commit c3de9df

Browse files
committed
Update gotchas.rst
Previous test block did not show code blocks in markdown view.
1 parent 2c275f3 commit c3de9df

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)