1
0
Fork 0
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:
Étienne Fildadut 2024-05-29 20:24:35 +02:00
parent 157f71a7fa
commit 41dede808e

View file

@ -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