I was reading in my textbook that it says "a function $ f $ may have a derivative $ f' $ which exists at every point, but is discontinuous at some point."
Before this there is a theorem that says that if a point is differentiable then it's also continuous. I think I'm missing something; how can this be true?