It is proven that any metric $d$ is continuous. Consider the metric space $(\mathbb{R}, d)$ where:
$$d:\mathbb{R}\times\mathbb{R}\rightarrow \mathbb{R}$$
$$d(x, y) = \begin{cases} 0 & x=y \\ 1 & x\neq y \end{cases} $$
Let $x_n \rightarrow x=0$ and $y_n \rightarrow y=0$. If you take $d(x_n, y_n)\rightarrow 1 \neq 0=d(x, y)$. This shows that this metric is discontinuous. What is wrong with my reasoning?