I was reading this document, and I noticed on page 3, example 5, in regards to the function $y=1/x$, it says
However, it is not a continuous function since its domain is not an interval.
Pointing out that it is continuous on its domain, but since its domain is disconnected, it must therefore be classified as discontinuous.
It was my understanding that because the function $1/x$ is continuous on every point in its domain, namely $(-\infty, 0) \cup(0, \infty)$, we can safely call it continuous.
Did I misunderstand the definition of continuity?