Determine the values where the function is continuous.

f(x)={x for rational numbers

{1-x for irrational numbers

I drew a sketch of what the graph would look like, and it seems that the function is not continuous anywhere. The two "lines" cross at (.5, .5), but .5 is rational, not irrational, so it doesn't satisfy the second half of the function. Is this logic correct?