Skip to content

Commit 5d83e1a

Browse files
authored
Merge pull request #3266 from Starbuck5/typo-fixes2
Typo fixes
2 parents a99c8e0 + 86d3086 commit 5d83e1a

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

buildconfig/stubs/stubcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def stubs_check():
4949
continue
5050

5151
cmd = " ".join(stubtest)
52-
print(f"Using stubtest invokation: `{cmd}` (version: {version})")
52+
print(f"Using stubtest invocation: `{cmd}` (version: {version})")
5353
prev_dir = os.getcwd()
5454
try:
5555
os.chdir(STUBS_BASE_DIR)

docs/reST/ref/draw.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
492492

493493
.. versionchangedold:: 2.0.0 Added support for keyword arguments.
494494
.. versionchanged:: 2.4.0 Removed deprecated 'blend' argument
495-
.. versionchanged:: 2.5.0 ``blend`` argument readded for backcompat, but will always raise a deprecation exception when used
495+
.. versionchanged:: 2.5.0 ``blend`` argument re-added for backcompat, but will always raise a deprecation exception when used
496496
.. versionchanged:: 2.5.3 Added line width
497497

498498
.. ## pygame.draw.aaline ##
@@ -533,7 +533,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
533533

534534
.. versionchangedold:: 2.0.0 Added support for keyword arguments.
535535
.. versionchanged:: 2.4.0 Removed deprecated ``blend`` argument
536-
.. versionchanged:: 2.5.0 ``blend`` argument readded for backcompat, but will always raise a deprecation exception when used
536+
.. versionchanged:: 2.5.0 ``blend`` argument re-added for backcompat, but will always raise a deprecation exception when used
537537

538538
.. ## pygame.draw.aalines ##
539539

docs/reST/ref/window.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291

292292
.. attribute:: utility
293293

294-
| :sl:`Get if the windos is an utility window (**read-only**)`
294+
| :sl:`Get if the window is an utility window (**read-only**)`
295295
| :sg:`utility -> bool`
296296
297297
``True`` if the window doesn't appear in the task bar, ``False`` otherwise.

examples/ninepatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def ninepatch_scale(
4444
) # when alpha is False the flags become 0
4545

4646
# aliases
47-
ret_w, ret_h = size # non-sequence argument catched by python
47+
ret_w, ret_h = size # non-sequence argument caught by python
4848
src_w, src_h = surface.size
4949
c = corner_size
5050
scale_func = pygame.transform.smoothscale if smooth else pygame.transform.scale

src_c/_sdl2/controller.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ controller_attached(pgControllerObject *self, PyObject *_null)
159159
{
160160
CONTROLLER_INIT_CHECK();
161161
if (!self->controller) {
162-
return RAISE(pgExc_SDLError, "Controller is not initalized");
162+
return RAISE(pgExc_SDLError, "Controller is not initialized");
163163
}
164164

165165
return PyBool_FromLong(SDL_GameControllerGetAttached(self->controller));
@@ -171,7 +171,7 @@ controller_as_joystick(pgControllerObject *self, PyObject *_null)
171171
CONTROLLER_INIT_CHECK();
172172
JOYSTICK_INIT_CHECK();
173173
if (!self->controller) {
174-
return RAISE(pgExc_SDLError, "Controller is not initalized");
174+
return RAISE(pgExc_SDLError, "Controller is not initialized");
175175
}
176176

177177
return pgJoystick_New(self->id);
@@ -188,7 +188,7 @@ controller_get_axis(pgControllerObject *self, PyObject *args, PyObject *kwargs)
188188
}
189189
CONTROLLER_INIT_CHECK();
190190
if (!self->controller) {
191-
return RAISE(pgExc_SDLError, "Controller is not initalized");
191+
return RAISE(pgExc_SDLError, "Controller is not initialized");
192192
}
193193

194194
if (axis < 0 || axis > SDL_CONTROLLER_AXIS_MAX - 1) {
@@ -210,7 +210,7 @@ controller_get_button(pgControllerObject *self, PyObject *args,
210210
}
211211
CONTROLLER_INIT_CHECK();
212212
if (!self->controller) {
213-
return RAISE(pgExc_SDLError, "Controller is not initalized");
213+
return RAISE(pgExc_SDLError, "Controller is not initialized");
214214
}
215215

216216
if (button < 0 || button > SDL_CONTROLLER_BUTTON_MAX) {
@@ -230,7 +230,7 @@ controller_get_mapping(pgControllerObject *self, PyObject *_null)
230230

231231
CONTROLLER_INIT_CHECK();
232232
if (!self->controller) {
233-
return RAISE(pgExc_SDLError, "Controller is not initalized");
233+
return RAISE(pgExc_SDLError, "Controller is not initialized");
234234
}
235235

236236
mapping = SDL_GameControllerMapping(self->controller);
@@ -285,7 +285,7 @@ controller_set_mapping(pgControllerObject *self, PyObject *args,
285285

286286
CONTROLLER_INIT_CHECK();
287287
if (!self->controller) {
288-
return RAISE(pgExc_SDLError, "Controller is not initalized");
288+
return RAISE(pgExc_SDLError, "Controller is not initialized");
289289
}
290290

291291
char guid_str[64];
@@ -364,7 +364,7 @@ controller_rumble(pgControllerObject *self, PyObject *args, PyObject *kwargs)
364364

365365
CONTROLLER_INIT_CHECK();
366366
if (!self->controller) {
367-
return RAISE(pgExc_SDLError, "Controller is not initalized");
367+
return RAISE(pgExc_SDLError, "Controller is not initialized");
368368
}
369369

370370
// rumble takes values in range 0 to 0xFFFF (65535)
@@ -382,7 +382,7 @@ controller_stop_rumble(pgControllerObject *self, PyObject *_null)
382382
{
383383
CONTROLLER_INIT_CHECK();
384384
if (!self->controller) {
385-
return RAISE(pgExc_SDLError, "Controller is not initalized");
385+
return RAISE(pgExc_SDLError, "Controller is not initialized");
386386
}
387387
SDL_GameControllerRumble(self->controller, 0, 0, 1);
388388
Py_RETURN_NONE;

src_c/doc/window_doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define DOC_WINDOW_POSITION "position -> (int, int) or WINDOWPOS_CENTERED or WINDOWPOS_UNDEFINED\nGet or set the window position in screen coordinates"
1818
#define DOC_WINDOW_OPACITY "opacity -> float\nGet or set the window opacity, between 0.0 (fully transparent) and 1.0 (fully opaque)"
1919
#define DOC_WINDOW_OPENGL "opengl -> bool\nGet if the window supports OpenGL"
20-
#define DOC_WINDOW_UTILITY "utility -> bool\nGet if the windos is an utility window (**read-only**)"
20+
#define DOC_WINDOW_UTILITY "utility -> bool\nGet if the window is an utility window (**read-only**)"
2121
#define DOC_WINDOW_FROMDISPLAYMODULE "from_display_module() -> Window\nCreate a Window object using window data from display module"
2222
#define DOC_WINDOW_GETSURFACE "get_surface() -> Surface\nGet the window surface"
2323
#define DOC_WINDOW_FLIP "flip() -> None\nUpdate the display surface to the window."

src_c/simd_transform_avx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ grayscale_avx2(SDL_Surface *src, SDL_Surface *newsurf)
165165
mm256_dst = _mm256_hadd_epi16(mm256_dstA, mm256_dstB);
166166
mm256_dst =
167167
_mm256_add_epi16(mm256_dst, _mm256_srli_epi32(mm256_dst, 16));
168-
// Shuffle the gray value from ther first channel of each pixel
168+
// Shuffle the gray value from the first channel of each pixel
169169
// into every channel of each pixel
170170
mm256_dst = _mm256_shuffle_epi8(mm256_dst, mm256_shuff_mask_gray);
171171

src_c/window.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ window_init(pgWindowObject *self, PyObject *args, PyObject *kwargs)
835835
const char *_key_str;
836836
int _value_bool;
837837

838-
// ensure display is init at this point, diplay init automatically calls
838+
// ensure display is init at this point, display init automatically calls
839839
// the window init in this module
840840
if (!pg_mod_autoinit(IMPPREFIX "display"))
841841
return -1;
@@ -1071,7 +1071,7 @@ window_from_display_module(PyTypeObject *cls, PyObject *_null)
10711071
return NULL;
10721072
}
10731073

1074-
// ensure display is init at this point, diplay init automatically calls
1074+
// ensure display is init at this point, display init automatically calls
10751075
// the window init in this module
10761076
if (!pg_mod_autoinit(IMPPREFIX "display"))
10771077
return NULL;

0 commit comments

Comments
 (0)