mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply suggestions from code review
Co-authored-by: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com>
This commit is contained in:
parent
acfe852777
commit
716bb7c3eb
2 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ The default iteration order for tables is specified to be consecutive for elemen
|
|||
|
||||
## String interpolation
|
||||
|
||||
Luau adds additional way to define string values that allows you to place runtime expressions directly inside specific spots of the literal.
|
||||
Luau adds an additional way to define string values that allows you to place runtime expressions directly inside specific spots of the literal.
|
||||
|
||||
This is a more ergonomic alternative over using `string.format` or `("literal"):format`.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ print(`The lock combination is {table.concat(combos)}. Again, {table.concat(comb
|
|||
--> The lock combination is 27185. Again, 2, 7, 1, 8, 5.
|
||||
```
|
||||
|
||||
String interpolation also composes well with `__tostring` metamethod.
|
||||
String interpolation also composes well with the `__tostring` metamethod.
|
||||
|
||||
```lua
|
||||
local balance = setmetatable({ value = 500 }, {
|
||||
|
|
Loading…
Add table
Reference in a new issue