I was studying Algebraic Geometry and I found the following result:
If $X$ is a normal variety, the set of singular points $Sing(X)$ has codimension $\geq 2$.
I understand this result and its proof, however my teacher said that this is not only a inequality but an equality, that is $\text{codim}(Sing(X))=2$. I do not undestand why this is true and I have not found this result in any book, which is weird because every book on algebraic geometry proves the first inequality.
I would be grateful if you can explain me why this is true, or give me a counterexample in case it is not true.