If you asked the truth-guard, the truth-guard would tell you that the liar-guard would point to the door that leads to death.
If you asked the liar-guard, the liar-guard would tell you that the truth-guard would point to the door that leads to death.
Therefore, no matter who you ask, the guards tell you which door leads to death, and therefore you can pick the other door.
exactly well done