Skip to content

Commit 0b542bc

Browse files
authored
fix circle move docs (#2660)
1 parent 5e4d9ad commit 0b542bc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/reST/ref/geometry.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@
191191

192192
.. note::
193193
This method is equivalent(behaviour wise) to the following code:
194-
::
195-
Circle((circle.x + x, circle.y + y), circle.r)
194+
195+
.. code-block:: python
196+
197+
Circle((circle.x + x, circle.y + y), circle.r)
196198
197199
.. ## Circle.move ##
198200
@@ -209,9 +211,11 @@
209211

210212
.. note::
211213
This method is equivalent(behaviour wise) to the following code:
212-
::
213-
circle.x += x
214-
circle.y += y
214+
215+
.. code-block:: python
216+
217+
circle.x += x
218+
circle.y += y
215219
216220
.. ## Circle.move_ip ##
217221

0 commit comments

Comments
 (0)