Skip to content

Commit 93fa8e0

Browse files
authored
Fix load_animation func name in docs
1 parent c2be0c1 commit 93fa8e0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/reST/ref/image.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ following formats.
138138
.. function:: load_animation
139139

140140
| :sl:`load an animation (GIF/WEBP) from a file (or file-like object)`
141-
| :sg:`load_sized_svg(file, namehint="") -> list[tuple[Surface, int]]`
141+
| :sg:`load_animation(file, namehint="") -> list[tuple[Surface, int]]`
142142
143143
Load an animation (GIF/WEBP) from a file source. You can pass either a
144144
filename, a Python file-like object, or a pathlib.Path. If you pass a raw
@@ -155,7 +155,7 @@ following formats.
155155

156156
.. versionadded:: 2.5.4
157157

158-
.. ## pygame.image.load_sized_svg ##
158+
.. ## pygame.image.load_animation ##
159159
160160
.. function:: save
161161

src_c/doc/image_doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define DOC_IMAGE "pygame module for image transfer"
33
#define DOC_IMAGE_LOAD "load(file) -> Surface\nload(file, namehint="") -> Surface\nload new image from a file (or file-like object)"
44
#define DOC_IMAGE_LOADSIZEDSVG "load_sized_svg(file, size) -> Surface\nload an SVG image from a file (or file-like object) with the given size"
5-
#define DOC_IMAGE_LOADANIMATION "load_sized_svg(file, namehint="") -> list[tuple[Surface, int]]\nload an animation (GIF/WEBP) from a file (or file-like object)"
5+
#define DOC_IMAGE_LOADANIMATION "load_animation(file, namehint="") -> list[tuple[Surface, int]]\nload an animation (GIF/WEBP) from a file (or file-like object)"
66
#define DOC_IMAGE_SAVE "save(Surface, file) -> None\nsave(Surface, file, namehint="") -> None\nsave an image to file (or file-like object)"
77
#define DOC_IMAGE_GETSDLIMAGEVERSION "get_sdl_image_version(linked=True) -> None\nget_sdl_image_version(linked=True) -> (major, minor, patch)\nget version number of the SDL_Image library being used"
88
#define DOC_IMAGE_GETEXTENDED "get_extended() -> bool\ntest if extended image formats can be loaded"

src_c/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ image_load_animation(PyObject *self, PyObject *args, PyObject *kwargs)
18941894
}
18951895

18961896
return RAISE(PyExc_NotImplementedError,
1897-
"Support for sized svg image loading was not compiled in.");
1897+
"Support for animation loading was not compiled in.");
18981898
}
18991899

19001900
static PyMethodDef _image_methods[] = {

0 commit comments

Comments
 (0)