There it is :
Suppose that
$(a)$ X and Y are metric spaces, $X$ is complete,
$(b)$ $f$ : $X$ $\to$ $Y$ is continuous
$(c)$ $X$ has a dense subset $X_0$ on which $f$ is an isometry, and
$(d)$ $f(X_0)$ is dense in $Y$,
Then $f$ is an isometry of $X$ onto $Y$.
There is the proof:
The fact that $f$ is an isometry on $X$ is an immediate consequence of the continuity of $f$, since $X_0$ is dense in $X$.
I don't understand why is the fact that $f$ is an isometry on $X$ immediate consequence of the continuity of $f$ ?
Any help would be appreciated.
Context: This question gives the proof of Lemma 4.16 in Rudin Real and Complex Analysis. This is used to prove the results in Theorem 4.17 which are the Bessel Inequality and the Riesz Fischer Theorem.