mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 08:39:30 +00:00
[internal] fix typo in string interpolation
This commit is contained in:
parent
157f71a7fa
commit
41dede808e
1 changed files with 2 additions and 2 deletions
|
|
@ -37,9 +37,9 @@ local StringInterpolation = ast.abstract.Node {
|
||||||
for _, e in ipairs(self.list) do
|
for _, e in ipairs(self.list) do
|
||||||
local r = e:eval(state)
|
local r = e:eval(state)
|
||||||
if String:is(e) then -- raw string
|
if String:is(e) then -- raw string
|
||||||
r = e.string
|
r = r.string
|
||||||
else -- interpolation
|
else -- interpolation
|
||||||
r = e:format_custom(state)
|
r = r:format_custom(state)
|
||||||
end
|
end
|
||||||
table.insert(t, r)
|
table.insert(t, r)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue