diff --git a/docs/reST/ref/surface.rst b/docs/reST/ref/surface.rst index cae2093e1a..a48b6ab103 100644 --- a/docs/reST/ref/surface.rst +++ b/docs/reST/ref/surface.rst @@ -1051,7 +1051,7 @@ .. attribute:: height | :sl:`Surface height in pixels (read-only)` - | :sg:`height->int` + | :sg:`height -> int` Read-only attribute. Same as :meth:`get_height()` @@ -1060,7 +1060,7 @@ .. attribute:: size | :sl:`Surface size in pixels (read-only)` - | :sg:`height->tuple[int, int]` + | :sg:`height -> tuple[int, int]` Read-only attribute. Same as :meth:`get_size()` diff --git a/src_c/doc/surface_doc.h b/src_c/doc/surface_doc.h index e901ed70c7..5bed170cfc 100644 --- a/src_c/doc/surface_doc.h +++ b/src_c/doc/surface_doc.h @@ -53,5 +53,5 @@ #define DOC_SURFACE_PIXELSADDRESS "_pixels_address -> int\npixel buffer address" #define DOC_SURFACE_PREMULALPHA "premul_alpha() -> Surface\nreturns a copy of the surface with the RGB channels pre-multiplied by the alpha channel." #define DOC_SURFACE_WIDTH "width -> int\nSurface width in pixels (read-only)" -#define DOC_SURFACE_HEIGHT "height->int\nSurface height in pixels (read-only)" -#define DOC_SURFACE_SIZE "height->tuple[int, int]\nSurface size in pixels (read-only)" +#define DOC_SURFACE_HEIGHT "height -> int\nSurface height in pixels (read-only)" +#define DOC_SURFACE_SIZE "height -> tuple[int, int]\nSurface size in pixels (read-only)"