From c1e142615d5a01d791dc7bc966bf523c788784fe Mon Sep 17 00:00:00 2001 From: Paperomo <60154085+Paperomo@users.noreply.github.com> Date: Wed, 5 Nov 2025 05:49:44 -0800 Subject: [PATCH] Merge pull request #11339 from Paperomo/update-common_engine_methods_and_macros.rst Update common_engine_methods_and_macros.rst --- .../architecture/common_engine_methods_and_macros.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine_details/architecture/common_engine_methods_and_macros.rst b/engine_details/architecture/common_engine_methods_and_macros.rst index cd30dc398..46f311f2b 100644 --- a/engine_details/architecture/common_engine_methods_and_macros.rst +++ b/engine_details/architecture/common_engine_methods_and_macros.rst @@ -57,7 +57,7 @@ in a way similar to C's ``sprintf()``: // Converts the resulting String into a `const char *`. // You may need to do this if passing the result as an argument // to a method that expects a `const char *` instead of a String. - vformat("My name is %s.", "Godette").c_str(); + vformat("My name is %s.", "Godette").utf8().get_data(); In most cases, try to use ``vformat()`` instead of string concatenation as it makes for more readable code.