mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-03 01:50:59 +01:00
Update docs/string-interpolation-format-specification.md
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
This commit is contained in:
parent
2695dd2ca8
commit
a50bbbf0b9
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ Most languages allow for format specifiers such as python f-strings or printf in
|
|||
|
||||
## Design
|
||||
|
||||
Under the hood, this will just be syntactic sugar in addition to the current implementation of interpolated strings. Before, interpolated strings were passed to `string.format` with no format was speified, but now we will also pass the optional format specifier. We decided on `,` to act as the delimiter for format specification.
|
||||
Under the hood, this will just be syntactic sugar in addition to the current implementation of interpolated strings. Before, interpolated strings were passed to `string.format` with no format was specified, but now we will also pass the optional format specifier. We decided on `,` to act as the delimiter for format specification.
|
||||
|
||||
To give some examples, this is how it would look like in code:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue