errors and warnings / parsing / E0116
E0116 error
Unbalanced } in an interpolated string
- area
- parsing (x01xx)
- fails the build
- yes
A backtick string contains a } that doesn't close an embedded {…}
expression. Write \} for a literal closing brace (and \{ for an opening
one).
Example
local count = 3print(`count} items: {count}`)local count = 3print(`\{count\} items: {count}`)The compiler reports it like this:
error[E0116]: unbalanced `}` in an interpolated string; write `\}` for a literal brace ┌─ src/main.wowlua:2:13 │ 2 │ print(`count} items: {count}`) │ ^ here
Related codes
Offline
$ wowlua explain E0116 E0116 (error): Unbalanced } in an interpolated string