Error codes

E0003: unterminated block comment

In a terminal: auk explain E0003 prints this page.

On this page

A /* comment was never closed with */. Block comments nest in Auk, so every /* inside the comment needs its own */ as well.

Wrong#

auk
/* compute the area
fn area(r: float): float = 3.14 * r * r

Fixed#

auk
/* compute the area */
fn area(r: float): float = 3.14 * r * r

Common causes#

  • A missing */.
  • Commenting out code that already contains a /*: the inner comment needs its own */.
  • Use // line comments for short notes; they can't be left open.

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