1 of 2

05AB1E, 4 bytes

±1^±

Explanation:

   ±      Bitwise NOT
±           Bitwise NOT (implicit) input
  ^         XOR
 1          one

Try it online!