Improve panic message

This commit is contained in:
Hanno Braun 2022-10-13 14:22:19 +02:00
parent fdd53a88aa
commit cc7936b29b

View File

@ -69,7 +69,10 @@ impl Triangle<2> {
return Winding::Ccw; return Winding::Ccw;
} }
unreachable!("not a triangle") unreachable!(
"Points don't form a triangle, but this was verified in the \
constructor."
)
} }
} }