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

Programmer Humor

32479 readers
666 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] irmoz@reddthat.com 17 points 1 year ago* (last edited 1 year 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;