Yesterday, when my lecturer was reading course lecture, she said that this function $$f(x)=\frac{x^2-x-2}{x-2}$$ has a breakpoint and is not continuous, also if we sketch graph it will have jumping point at $x=2$, it is clear from his equation because $x-2$ at $x=2$ has a vertical asymptote, but if we factorize the given equation as $\frac{(x-2)(x+1)}{(x-2)}$ then we could cancel out $x-2$, yes? (as I know in this case $x=2$ is removable point or something like this). If we cancel out, then we are left only with $x+1$, which is continuous everywhere. I have also tried to use wolframalpha to see the graph, here it is
It shows me the graph of straight line, so my question is: was my teacher's belief that this function is discontinuous correct or am I wrong?