diff --git a/engine_details/architecture/common_engine_methods_and_macros.rst b/engine_details/architecture/common_engine_methods_and_macros.rst index cd30dc39826..08bf5cc4c8c 100644 --- a/engine_details/architecture/common_engine_methods_and_macros.rst +++ b/engine_details/architecture/common_engine_methods_and_macros.rst @@ -53,11 +53,11 @@ in a way similar to C's ``sprintf()``: vformat("My name is %s.", "Godette"); vformat("%d bugs on the wall!", 1234); vformat("Pi is approximately %f.", 3.1416); - + // 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.