2 minus signs(--) have the same effect as one plus sign(+).
It is easier to see with parenthesis:
3 - (-1) = 3 + 1 = 4 = ez win