Suppose the received message is 001, 010 or 100. We expect to see three identical digits. Since at most one digit is reversed, the error occurs at the digit 1, and we should do nothing.
Similarly, if the received message is 110, 101 or 011, we will drop the big bomb. This is a prototype of an error-correcting code. The underlying principle is the very simple majority rule.