Skip to content

Commit c1e1426

Browse files
authored
Merge pull request #11339 from Paperomo/update-common_engine_methods_and_macros.rst
Update common_engine_methods_and_macros.rst
1 parent 2e41566 commit c1e1426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine_details/architecture/common_engine_methods_and_macros.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ in a way similar to C's ``sprintf()``:
5757
// Converts the resulting String into a `const char *`.
5858
// You may need to do this if passing the result as an argument
5959
// to a method that expects a `const char *` instead of a String.
60-
vformat("My name is %s.", "Godette").c_str();
60+
vformat("My name is %s.", "Godette").utf8().get_data();
6161
6262
In most cases, try to use ``vformat()`` instead of string concatenation as it
6363
makes for more readable code.

0 commit comments

Comments
 (0)