Skip to content

Commit 1bbc868

Browse files
authored
Fixed some typos and mispellings (#5381)
Specifically "occured" -> "occurred"
1 parent ed5da45 commit 1bbc868

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ Detailed changes:
565565
[rtext] ADDED: SetTextLineSpacing() to define line breaks text drawing spacing by @raysan5
566566
[rtext] RENAMED: LoadFont*() parameter names for consistency and coherence by @raysan5
567567
[rtext] REVIEWED: GetCodepointCount(), ignore unused return value of GetCodepointNext by @ashn-dot-dev
568-
[rtext] REVIEWED: TextFormat() warn user if buffer overflow occured (#3399) by @Murlocohol
568+
[rtext] REVIEWED: TextFormat() warn user if buffer overflow occurred (#3399) by @Murlocohol
569569
[rtext] REVIEWED: TextFormat(), added "..." for truncation (#3366) by @raysan5
570570
[rtext] REVIEWED: GetGlyphIndex() (#3000) by @raysan5
571571
[rtext] REVIEWED: GetCodepointNext() to return default value by @chocolate42

examples/shapes/shapes_ball_physics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int main(void)
8383
pressOffset.y = mousePos.y - ball->pos.y;
8484

8585
// If the distance between the ball position and the mouse press position
86-
// is less or equal the ball radius, the event occured inside the ball
86+
// is less than or equal to the ball radius, the event occurred inside the ball
8787
if (hypot(pressOffset.x, pressOffset.y) <= ball->radius)
8888
{
8989
ball->grabbed = true;

examples/shapes/shapes_double_pendulum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main(void)
4242
SetConfigFlags(FLAG_WINDOW_HIGHDPI);
4343
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - double pendulum");
4444

45-
// Simulation Paramters
45+
// Simulation Parameters
4646
float l1 = 15.0f, m1 = 0.2f, theta1 = DEG2RAD*170, w1 = 0;
4747
float l2 = 15.0f, m2 = 0.1f, theta2 = DEG2RAD*0, w2 = 0;
4848
float lengthScaler = 0.1f;

src/platforms/rcore_drm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,15 +1865,15 @@ static void ProcessKeyboard(void)
18651865
}
18661866
#endif // SUPPORT_SSH_KEYBOARD_RPI
18671867

1868-
// Initialise user input from evdev(/dev/input/event<N>)
1868+
// Initialize user input from evdev(/dev/input/event<N>)
18691869
// this means mouse, keyboard or gamepad devices
18701870
static void InitEvdevInput(void)
18711871
{
18721872
char path[MAX_FILEPATH_LENGTH] = { 0 };
18731873
DIR *directory = NULL;
18741874
struct dirent *entity = NULL;
18751875

1876-
// Initialise keyboard file descriptor
1876+
// Initialize keyboard file descriptor
18771877
platform.keyboardFd = -1;
18781878
platform.mouseFd = -1;
18791879

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4308,7 +4308,7 @@ const char *TextFormat(const char *text, ...)
43084308
int requiredByteCount = vsnprintf(currentBuffer, MAX_TEXT_BUFFER_LENGTH, text, args);
43094309
va_end(args);
43104310

4311-
// If requiredByteCount is larger than the MAX_TEXT_BUFFER_LENGTH, then overflow occured
4311+
// If requiredByteCount is larger than the MAX_TEXT_BUFFER_LENGTH, then overflow occurred
43124312
if (requiredByteCount >= MAX_TEXT_BUFFER_LENGTH)
43134313
{
43144314
// Inserting "..." at the end of the string to mark as truncated

src/rtext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ const char *TextFormat(const char *text, ...)
15241524
int requiredByteCount = vsnprintf(currentBuffer, MAX_TEXT_BUFFER_LENGTH, text, args);
15251525
va_end(args);
15261526

1527-
// If requiredByteCount is larger than the MAX_TEXT_BUFFER_LENGTH, then overflow occured
1527+
// If requiredByteCount is larger than the MAX_TEXT_BUFFER_LENGTH, then overflow occurred
15281528
if (requiredByteCount >= MAX_TEXT_BUFFER_LENGTH)
15291529
{
15301530
// Inserting "..." at the end of the string to mark as truncated

0 commit comments

Comments
 (0)