Error codes

E0009: unmatched } in a string

In a terminal: auk explain E0009 prints this page.

On this page

A string contains a } that doesn't close an interpolation. Because { and } mark interpolations, a literal brace must be doubled.

Wrong#

auk
fn close(): str = "a } b"

Fixed#

auk
fn close(): str = "a }} b"

Common causes#

  • JSON or code text inside a string: double every brace ({{ and }}).
  • An extra } after an interpolation: "{x}}".
  • For text full of braces, a raw string r"..." doesn't interpolate at all.

Stuck on a word? Try the glossary. Got a compiler error? Look up its code. Improve this page