My book says: if x has a standard uniform function then y=1-x also has a standard uniform function.

When I try to draw y I get y=0 for 0<=x=>1.
Is this correct?