In my textbook, it gives a definition of limit in a topological space. Here it is:
$X \in \mathfrak{P}(E), a \in \overline{X}, f: X \rightarrow F, l \in F $
$f$ has a limit $l$ at $a$ if and only if: $$\forall \varepsilon > 0, \exists \eta > 0, \forall x \in X, \quad d_E(x,a) \leq \eta \Rightarrow d_F(f(x), l) \leq \varepsilon $$
My question is why $a$ must be in $\overline{X}$, what happen if $a$ in $X$?
If $a\in X$, then $a\in\overline X$.
We define this only when $a$ is in the closure of $X$ to make sure that there are points of $E$ as close to $a$ as we want. Otherwise, every element of $F$ would be a limit of $f$ at the point $a$. But with the restriction of imposing that $a\in\overline X$, the limit (if it exists) is unique.