From 8811b3304f8035e14fb725e9840be2b79673af73 Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Sun, 6 Mar 2022 05:24:53 +0000 Subject: [PATCH] Edit type of string (const char* -> const char []) --- Frequently-asked-Questions--Common-Questions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frequently-asked-Questions--Common-Questions.md b/Frequently-asked-Questions--Common-Questions.md index f7c83da..f73dbb9 100644 --- a/Frequently-asked-Questions--Common-Questions.md +++ b/Frequently-asked-Questions--Common-Questions.md @@ -83,7 +83,7 @@ int screenCenterY = GetScreenHeight() / 2; Next you need to compute how large the text is, and offset the center by half the text size. ```c -const char* text = "Congrats! You created your first window!"; +const char text[] = "Congrats! You created your first window!"; int fontSize = 20; int textWidth = MeasureText(text, fontSize);