mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Merge pull request #3701 from Calinou/fix-vformat-example
Fix `vformat()` example in Common engine methods and macros
This commit is contained in:
@@ -89,7 +89,8 @@ To insert placeholders in localizable strings, wrap the localization macro in a
|
||||
|
||||
.. code-block:: cpp
|
||||
|
||||
vformat(TTR("Couldn't open \"%s\" for reading."));
|
||||
String file_path = "example.txt";
|
||||
vformat(TTR("Couldn't open \"%s\" for reading."), file_path);
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user