So the theorem is as follows.
Suppose that $\,f(g(x))\,$ is defined in some punctured neighborhood of $\,x = a\,$, and that $\,g(x)\neq b\,$ there.
If $\;\lim\limits_{x\to a}g(x)=b\;$ and $\;\lim\limits_{t\to b}f(t)=L\;,\;$ then $\lim\limits_{x\to a}f(g(x))=L\,$.
I'm wondering what the meaning of $\,g(x)\neq b\,$ is. Can someone give an example of why this is important? I'm guessing it is possible to replace that part with that $\,g\,$ is continuous.