According to Theorems 1 and 3 in this review article we have
Weierstrass: Suppose $f$ is a continuous function on a closed bounded interval $[a,b] \subset\mathbb{R}$. For every $\epsilon > 0$ there exists a polynomial $p$ such that for all $x \in [a,b]$ we have $| f(x)− p(x)| < \epsilon$.
Mergelyan: If $K$ is a compact set in $C$ with connected complement, then every continuous function $f\colon K\to \mathbb{C}$ that is holomorphic in the interior of $K$ can be approximated uniformly on $K$ by holomorphic polynomials.
Both Wikipedia and the review say that the latter is a generalization of the former. In which sense is this true? How does Weierstrass' theorem follow from Mergelyan's?
$K=[a,b] \subseteq \mathbb C$ is a compact set with connected complement.
Since $K$ has empty interior, "holomorphic in the interior of $K$" is true.
"approximated uniformly" is the same as "$| f(x)− p(x)| < \epsilon$ for all $x \in K$".