Skip to content

break_unit

Source Code

What it does

Checks for break (); statements and suggests removing the parentheses.

Example

cairo
fn main() {
    loop {
        break ();
    }
}

Can be fixed by removing the parentheses:

cairo
fn main() {
    loop {
        break;
    }
}