this post was submitted on 02 Oct 2023
1101 points (98.8% liked)

Programmer Humor

37595 readers
1352 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] irmoz@reddthat.com 18 points 2 years ago* (last edited 2 years ago)

The error is usually with the line before

EDIT: could be a missing bracket:

if (x == 5){
    do_thing();

or a comparison in place of an assignment:

x == 5;