Browse Source

Fix `vformat()` example in Common engine methods and macros

Hugo Locurcio 5 years ago
parent
commit
a135d305ff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      development/cpp/common_engine_methods_and_macros.rst

+ 2 - 1
development/cpp/common_engine_methods_and_macros.rst

@@ -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::