"Liar functions": is this a known concept?

For any sequence of reals $r_1,r_2,\dots$, there is a function that is discontinuous precisely at elements of this sequence. For example, define $f(x)$ to be the sum of $2^{-n}$ over all $n$ such that $r_n<x$.