I am reading the book Numerically solving polynomials systems with Bertini in which they define a manifold point $p^* = (p_1^*,\ldots,p_m^*)$ of an algebraic set $X$ to be a point in $X$ with an open neighborhood $U\subset X$ such that for some mapping $\Phi(z_1,\ldots,z_m)$, $\Phi$ restricted to $U$ maps $U$ bijectively onto a neighborhood of the origin in $\mathbb{C}^k$ for some $k$. The set of manifold points of $X$ is denoted $X_{\text{reg}}$.
Now they say an affine complex algebraic set $X$ is irreducible if $X_{\text{reg}}$ is connected, i.e. $X_{\text{reg}}$ cannot be written as the union of two disjoint non-empty open subsets in $X_{\text{reg}}$.
However, in my algebraic geometry class, which is based on the book of Hartsthorne. An algebraic set $X$ is irreducible if it cannot be expressed as the union of two proper non-empty closed subsets of $X$.
I have not seen any mention of manifold points in Hartsthorne so far and am having trouble understanding which points of an algebraic set are manifold points (or rather which points are not) and therefore how these two definitions of irreducibility coincide.