Let $X$ be a topological space and let $Y$ be a Hausdorff space. Let $D$ be dense in $X$. Prove that continuous functions $f, g : X \to Y$ which are equal in $D$ are equal in all $X$.
I'm a little stuck with this elementary proof. All help appreciated :)