I once wrote a date conversion routine that ended up stopping all new connections to a UK mobile network for the month of December.
Converting from 01, 02, 03… to JAN, FEB, MAR.
In Fortran (comments indicated by a “!”), something along the lines of
If 01 then month=JAN
ELSEIF 02 then month=FEB
..
..
ELSEIF 12 then month=DEC
ELSE
! Something bad as the month isn’t 01-12, bomb out
Throw fatal error
All well and good(ish), however… I’d left a “!” in front of the final ELSE, turning it into a comment.
I was late into the office 1st Dec, to be greeted by sniggers and “uh-oh, you’re in trouble” head shaking. We fixed it by about 11am. My one saving grace was I had the signed-off code review proving my mate had missed the extra “!” as well.