My question deals with a solution to an example problem from the text Introduction to Real Analysis by Bartle and Sherbert. From the text:
Example Problem: $ \phi(x):=\frac{1}{x}$ is not continuous at $x = 0$. Solution: Indeed, if $ \phi(x)=\frac{1}{x}$ for $x > 0$, then $\phi$ is not defined for $x=0$ , so it cannot be continuous there.
A second solution is given in which it's shown that $ \lim_{x \to 0} \frac{1}{x} $ does not exist in $\mathbb{R}$ and I completely understand the second solution. However, I don't fully understand the first solution unless it read like the modified solution below in which I switch the domain from $x > 0$ to $x = 0$:
Example Problem: $ \phi(x):=\frac{1}{x}$ is not continuous at $x = 0$. Solution: Indeed, if $ \phi(x)=\frac{1}{x}$ for $x \neq 0$, then $\phi$ is not defined for $x=0$ , so it cannot be continuous there.
The way the first solution reads right now, it seems like I can simply pick a convenient domain for the function. This doesn't make sense (unless I'm missing something) because then I could simply define a function with any $c \in \mathbb{R}$ missing so that the function will be not be defined (and thus not be continuous) at the point $c$.
Am I missing something? And if so, what?