Okay, here we have this:
Considering that a function is one-to-one if and only if no horizontal line intersects its graph more than once.
So, according with this we any horizontal line that is drawn on the line touches only one point on it, therefore the function is one to one.