Skip to content

Commit 386bd0b

Browse files
committed
Fix method link to get_rect in docs
1 parent d0d02d1 commit 386bd0b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/reST/ref/surface.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,16 +714,14 @@
714714
| :sl:`get the rectangular area of the Surface`
715715
| :sg:`get_frect(\**kwargs) -> FRect`
716716
717-
This is the same as ``.get_rect()`` but returns an FRect. FRect is similar
717+
This is the same as :meth:`Surface.get_rect` but returns an FRect. FRect is similar
718718
to Rect, except it stores float values instead.
719719

720720
You can pass keyword argument values to this function. These named values
721721
will be applied to the attributes of the FRect before it is returned. An
722-
example would be ``mysurf.get_frect(center=(100.0, 100.0))`` to create a
722+
example would be ``mysurf.get_frect(center=(100.5, 100.5))`` to create a
723723
rectangle for the Surface centered at a given position.
724724

725-
:ref:`Surface.get_rect`
726-
727725
.. ## Surface.get_frect ##
728726
729727
.. method:: get_bitsize

0 commit comments

Comments
 (0)