when i was reading the book "elementary linear algebra with applications" by Howard Anton, Chris Rorres. There is a theorem said
A triangular matrix is invertible iff its diagonal entries are all non zero.
I know how to proof this theorem, but he immediately shows a counterexample without explaining it. the counter example is as follows: \begin{bmatrix}3&-2&2\\0&2&-1\\0&0&1\end{bmatrix}
My question is why this is not invertible, and why this theorem does not hold for this case. Further, is there a strong statement to conclude this theorem. Many thanks.