I'm trying to solve this limit:
$$\lim_{x \to 1}{\frac{1-x^2}{\sin (\pi x)}}$$
The answer ought to be $\frac{2}{\pi}$, but I end up with $0$:
$\lim\limits_{x \to 1}{\frac{1-x^2}{\sin (\pi x)}} = $ $\lim\limits_{y \to 0}{\frac{1-(y+1)^2}{\sin (\pi (y+1))}} = $ $\lim\limits_{y \to 0}{\frac{\pi(y+1)}{\sin (\pi (y+1))} \frac{1-(y+1)^2}{\pi(y+1)}} = $ $\lim\limits_{y \to 0}{\frac{1-(y+1)^2}{\pi(y+1)}} = 0$
Where and why is my solution incorrect?
Note: I'm aware of this post, however I believe mine is different because I'm asking where and why my solution went wrong, not why my answer was wrong.