Update gdscript_format_string.rst

This commit is contained in:
corrigentia
2018-12-06 14:11:13 +02:00
committed by GitHub
parent 57d6bf92f9
commit 674d24192b

View File

@@ -3,7 +3,7 @@
GDScript format strings
=======================
GDScript offers a feature called *format strings* which allows reusing text
GDScript offers a feature called *format strings*, which allows reusing text
templates to succinctly create different but similar strings.
Format strings are just like normal strings, except they contain certain
@@ -270,7 +270,7 @@ examples of that functionality.
| Prefix | ``"Hi, %0 v%1".format(["Godette", "3.0"], "%_")`` | Hi, Godette v3.0 |
+-----------------+------------------------------------------------------+------------------+
Combining both the ``String.format`` method and the ``%`` operator could be useful as
Combining both the ``String.format`` method and the ``%`` operator could be useful, as
``String.format`` does not have a way to manipulate the representation of numbers.
+---------------------------------------------------------------------------+-------------------+