Error codes

E0010: triple-quoted string line indented less than its closing quotes

In a terminal: auk explain E0010 prints this page.

On this page

A """ string strips the closing line's indentation from every line, so every line must be indented at least that much. A line that is indented less would lose real text.

Wrong#

auk
fn poem(): str {
  let s = """
    roses
  red
    """
  s
}

Fixed#

auk
fn poem(): str {
  let s = """
    roses
    red
    """
  s
}

Common causes#

  • A line pasted without indentation.
  • The closing """ indented further than the text: move it left.
  • Tabs and spaces mixed between lines.

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