Say like $\lim_{x\to0}\frac1{x^2}$. My professor said the limit of a function cannot be infinity, and according to my textbook “limit is a finite number” is clearly stated. Infinity, from my knowledge, is neither finite nor a number.
However I do see many people write down infinity as answer for questions like $\lim_{x\to0}\frac1{x^2}$.
I am confused. Which one is correct?