Recently, i've been reviewing analysis. And i found this theorem in my text and that in wikipedia differ. Indeed, wikipedia one is strictly stronger.
=======
Rudin - PMA p.162
Let $X$ be a compact Hausdorff space. Let $(C(X,\mathbb{R}),||•||)$ be the algebra of all continuous functions, which is given the uniform topology. Let $\mathscr{A}$ be a subalgebra of $C(X,\mathbb{R})$. If $\mathscr{A}$ vanishes nowhere and separates points, then it is dense in $C(X,\mathbb{R}$.
=======
However, it is stated in wikipedia that when $X$ is compact Hausdorff, $\mathscr{A}$ is dense iff $\mathscr{A}$ separates points. Moreover, when $X$ is locally compact Hausdorff, $\mathscr{A}$ is dense iff $\mathscr{A}$ separates points and vanishes nowhere. (Here, $\mathscr{A}$ is taken to be a subalgebra of the algebra of all continuous functions vanish at infinity)
Is it possible to extend the theorem in my text to that in wikipedia by slight changes in proof?
Or else, where can i see the complete proof for that in wikipedia?