Skip to content

Commit 779efd7

Browse files
committed
fix typos
fix typos
1 parent 3822a18 commit 779efd7

31 files changed

+51
-51
lines changed

docs/reST/c_api/color.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Header file: src_c/include/pygame.h
2626
2727
.. c:function:: PyObject* pgColor_New(Uint8 rgba[])
2828
29-
Return a new :py:class:`pygame.Color` instance for the the four element array *rgba*.
29+
Return a new :py:class:`pygame.Color` instance for the four element array *rgba*.
3030
On failure, raise a Python exception and return ``NULL``.
3131
3232
.. c:function:: PyObject* pgColor_NewLength(Uint8 rgba[], Uint8 length)

docs/reST/ref/font.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ solves no longer exists, it will likely be removed in the future.
300300
| :sg:`point_size -> int`
301301
302302
Returns the point size of the font. Will not be accurate upon initializing
303-
the font object when the font name is initalized as ``None``.
303+
the font object when the font name is initialized as ``None``.
304304

305305
.. versionadded:: 2.3.1
306306

@@ -527,7 +527,7 @@ solves no longer exists, it will likely be removed in the future.
527527
| :sg:`set_point_size(size, /) -> int`
528528
529529
Sets the point size of the font, which is the value that was used to
530-
initalize this font.
530+
initialize this font.
531531

532532
.. versionadded:: 2.3.1
533533

@@ -539,7 +539,7 @@ solves no longer exists, it will likely be removed in the future.
539539
| :sg:`get_point_size() -> int`
540540
541541
Returns the point size of the font. Will not be accurate upon
542-
initializing the font object when the font name is initalized
542+
initializing the font object when the font name is initialized
543543
as ``None``.
544544

545545
.. versionadded:: 2.3.1

docs/reST/ref/pixelarray.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
if pxarray[0, 0] == surface.map_rgb((0, 0, 255)):
4343
...
4444

45-
When assigning to a range of of pixels, a non tuple sequence of colors or
45+
When assigning to a range of pixels, a non tuple sequence of colors or
4646
a PixelArray can be used as the value. For a sequence, the length must
4747
match the PixelArray width.
4848

@@ -79,7 +79,7 @@
7979
pxarray[::2] = (0, 0, 0) # Same as [::2, :]
8080

8181
During its lifetime, the PixelArray locks the surface, thus you explicitly
82-
have to close() it once its not used any more and the surface should perform
82+
have to close() it once it's not used any more and the surface should perform
8383
operations in the same scope. It is best to use it as a context manager
8484
using the with PixelArray(surf) as pixel_array: style. So it works on pypy too.
8585

docs/reST/ref/sdl2_controller.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ events related to controllers.
222222

223223
.. versionchangedold:: 2.0.2: Return type changed from ``str`` to ``dict``
224224

225-
.. ## Contorller.get_mapping ##
225+
.. ## Controller.get_mapping ##
226226
227227
.. method:: set_mapping
228228

@@ -252,7 +252,7 @@ events related to controllers.
252252
.. versionchangedold:: 2.0.2: Renamed from ``add_mapping`` to ``set_mapping``
253253
.. versionchangedold:: 2.0.2: Argument type changed from ``str`` to ``dict``
254254

255-
.. ## Contorller.set_mapping ##
255+
.. ## Controller.set_mapping ##
256256
257257
.. method:: rumble
258258

@@ -270,7 +270,7 @@ events related to controllers.
270270

271271
.. versionaddedold:: 2.0.2
272272

273-
.. ## Contorller.rumble ##
273+
.. ## Controller.rumble ##
274274
275275
.. method:: stop_rumble
276276

@@ -282,6 +282,6 @@ events related to controllers.
282282

283283
.. versionaddedold:: 2.0.2
284284

285-
.. ## Contorller.stop_rumble ##
285+
.. ## Controller.stop_rumble ##
286286
287287
.. ## pygame._sdl2.controller ##

docs/reST/ref/sprite.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
244244
Add any number of Sprites to this Group. This will only add Sprites that
245245
are not already members of the Group.
246246

247-
Each sprite argument can also be a iterator containing Sprites.
247+
Each sprite argument can also be an iterator containing Sprites.
248248

249249
.. ## Group.add ##
250250
@@ -256,7 +256,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
256256
Remove any number of Sprites from the Group. This will only remove
257257
Sprites that are already members of the Group.
258258

259-
Each sprite argument can also be a iterator containing Sprites.
259+
Each sprite argument can also be an iterator containing Sprites.
260260

261261
.. ## Group.remove ##
262262
@@ -269,7 +269,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
269269
similar to using the "in" operator on the Group ("if sprite in group:
270270
..."), which tests if a single Sprite belongs to a Group.
271271

272-
Each sprite argument can also be a iterator containing Sprites.
272+
Each sprite argument can also be an iterator containing Sprites.
273273

274274
.. ## Group.has ##
275275
@@ -395,7 +395,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
395395
396396
.. method:: sprites
397397

398-
| :sl:`returns a ordered list of sprites (first back, last top).`
398+
| :sl:`returns an ordered list of sprites (first back, last top).`
399399
| :sg:`sprites() -> sprites`
400400
401401
.. ## LayeredUpdates.sprites ##

docs/reST/ref/transform.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Instead, always begin with the original image and scale to the desired size.)
169169
| :sl:`return smoothscale filter version in use: 'GENERIC', 'MMX', 'SSE', 'SSE2', or 'NEON'`
170170
| :sg:`get_smoothscale_backend() -> string`
171171
172-
Shows whether or not smoothscale is using SIMD accleration.
172+
Shows whether or not smoothscale is using SIMD acceleration.
173173
If no acceleration is available then "GENERIC" is returned. The level of
174174
acceleration possible is automatically determined at runtime.
175175

examples/aliens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def load_image(file):
5656

5757

5858
def load_sound(file):
59-
"""because pygame can be be compiled without mixer."""
59+
"""because pygame can be compiled without mixer."""
6060
if not pygame.mixer:
6161
return None
6262
file = os.path.join(main_dir, "data", file)

examples/multiplayer_joystick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create_surf(size, color):
7373
# disconnect controller
7474
if event.instance_id in active_players:
7575
disconnect_joystick(event.instance_id)
76-
# check if there is at leat one controller connected
76+
# check if there is at least one controller connected
7777
are_no_controllers_connected = True
7878
for player in players:
7979
if player:

examples/testsprite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
It is an abomination of ugly code, and mostly used for testing.
88
99
10-
See pygame.examples.aliens for some prettyier code.
10+
See pygame.examples.aliens for some prettier code.
1111
"""
1212

1313
import sys

src_c/SDL_gfx/SDL_gfxPrimitives.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ int roundedBoxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2,
20062006
/*!
20072007
\brief Internal clip-encoding routine.
20082008
2009-
Calculates a segement-based clipping encoding for a point against a rectangle.
2009+
Calculates a segment-based clipping encoding for a point against a rectangle.
20102010
20112011
\param x X coordinate of point.
20122012
\param y Y coordinate of point.
@@ -4196,7 +4196,7 @@ ellipseRGBA(SDL_Surface *dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry,
41964196

41974197
/* ----- AA Ellipse */
41984198

4199-
/* Visual Studio 2015 and above define the lrint intristic function, but for
4199+
/* Visual Studio 2015 and above define the lrint intrinsic function, but for
42004200
* compatibility with older windows compilers, we need to define it ourselves
42014201
*/
42024202
#if defined(_MSC_VER)
@@ -5818,11 +5818,11 @@ When set to NULL, uses global static temp array.
58185818
\param vy array of x vector components
58195819
\param n the amount of vectors in the vx and vy array
58205820
\param texture the sdl surface to use to fill the polygon
5821-
\param texture_dx the offset of the texture relative to the screeen. if you
5821+
\param texture_dx the offset of the texture relative to the screen. if you
58225822
move the polygon 10 pixels to the left and want the texture to appear the same
58235823
you need to increase the texture_dx value \param texture_dy see texture_dx
58245824
\param polyInts preallocated temp array storage for vertex sorting (used for
5825-
multi-threaded operation) \param polyAllocated flag indicating oif the temp
5825+
multi-threaded operation) \param polyAllocated flag indicating if the temp
58265826
array was allocated (used for multi-threaded operation)
58275827
58285828
\returns Returns 0 on success, -1 on failure.
@@ -6714,7 +6714,7 @@ int _bresenhamIterate(SDL_gfxBresenhamIterator *b)
67146714

67156715

67166716
/*!
6717-
\brief Internal function to to draw parallel lines with Murphy algorithm.
6717+
\brief Internal function to draw parallel lines with Murphy algorithm.
67186718
67196719
\param m Pointer to struct for murphy iterator.
67206720
\param x X coordinate of point.
@@ -6769,7 +6769,7 @@ void _murphyParaline(SDL_gfxMurphyIterator *m, Sint16 x, Sint16 y, int d1)
67696769
}
67706770

67716771
/*!
6772-
\brief Internal function to to draw one iteration of the Murphy algorithm.
6772+
\brief Internal function to draw one iteration of the Murphy algorithm.
67736773
67746774
\param m Pointer to struct for murphy iterator.
67756775
\param miter Iteration count.
@@ -6902,7 +6902,7 @@ void _murphyIteration(SDL_gfxMurphyIterator *m, Uint8 miter,
69026902
#define HYPOT(x, y) sqrt((double)(x) * (double)(x) + (double)(y) * (double)(y))
69036903

69046904
/*!
6905-
\brief Internal function to to draw wide lines with Murphy algorithm.
6905+
\brief Internal function to draw wide lines with Murphy algorithm.
69066906
69076907
Draws lines parallel to ideal line.
69086908

0 commit comments

Comments
 (0)