If it's anything like a consolation: the same thing just happened to me only a few hours ago, when I was writing the "tap zones" patch for JBPatch: I had accidentally reversed "always" and "never" in the descriptions, and was going crazy to find the apparent bug. It took me more than half an hour to find it
After all, we're all just humans/idiots