Docs menu

E102: A semicolon is missing

What compiler error E102 means, and how to fix it.

Every statement in Turf ends with a semicolon ;. This error means Turf finished reading one statement and found the start of the next one without a ; in between.

Example
mut x: int = 5            // no semicolonreturn x;

Turf tells you the position where the next thing started, which is just after where the semicolon belongs. So look at the end of the line above the one it points to:

Example
mut x: int = 5;return x;

Where it applies: a variable declaration, an assignment, a function call on its own, return, break, continue, and the ; after a do { ... } while condition; loop.

Where it doesn’t: after a block’s closing } for if, while, for, a function, a struct, an enum – those end with the brace.

Run turf --explain E102 in a terminal to read this again.

Last updated: Oct 15, 2026Edit this page on GitHub

Esc

Type to search.