In proving that the equivalence between different definitions of continuous functions between topological spaces, I come across this lemma. Could you have a check if my attempt is correct?
Lemma: Let $X$ be a topological space and $A \subseteq X$. Then $\overline A$ is the set of limits of convergent nets with values in $A$.
Proof: For $x \in X$, let $\mathcal N_x$ be the set of all neighborhoods of $x$. We have $$\overline A = \{x \in X \mid \forall U \in \mathcal N_x: U \cap A \neq \emptyset \}.$$
Then we define a pre-order $\le$ on $\mathcal N_x$ by $U_1 \le U_2 \iff U_2 \subseteq U_1$. Then $\mathcal N_x$ is a directed set. Let $x \in \overline A$. By axiom of choice, for each $U \in \mathcal N_x$, there is $x_U \in U \cap A$. Hence $(x_U)_{U \in \mathcal N_x}$ is a net in $A$ such that $x_U \to x$. Conversely, let $(x_d)_{d\in D}$ be a net in $A$ that converges to $x \in X$. For each $U \in \mathcal N_x$, there is $d' \in D$ such that $x_d \in U$ for all $d \ge d'$. This means $U \cap A \neq \emptyset$ for all $U \in \mathcal N_x$. Hence $x \in \overline A$.