We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfa102b + 820fdbe commit ce2a1b5Copy full SHA for ce2a1b5
tutorials/scripting/gdscript/gdscript_format_string.rst
@@ -6,7 +6,7 @@ GDScript format strings
6
Godot offers multiple ways to dynamically change the contents of strings:
7
8
- Format strings: ``var string = "I have %s cats." % "3"``
9
-- The ``String.format()`` method: ``var string = "I have {} cats.".format([3])``
+- The ``String.format()`` method: ``var string = "I have {0} cats.".format([3])``
10
- String concatenation: ``var string = "I have " + str(3) + " cats."``
11
12
This page explains how to use format strings, and briefly explains the ``format()``
0 commit comments