On a current problem sheet I've read the following: Let $G\subseteq\mathbb C$ be a domain and $f:G\to\mathbb C$ holomorphic. Let $(z_n)_n$ be a sequence with a limit point in $G$ and $f(z_n)=0$ for all $n$, then $f(z)\equiv 0$ for all $z\in G$ according to the identity theorem.
My question is this: Is this even true? The sequence $z_n=0$ for all $n\in\mathbb N$ has the limit point $0\in\mathbb C$ and $f(z)=z$ satisfies the condition, however $f$ is not equal to $0$ on $\mathbb C$. As far as I know the identity theorem needs limit points of sets to be applied. So the statement would be true if we said the following: Let $(z_n)$ be a sequence such that $\{z_n:n\in\mathbb N\}\subseteq G$ has a limit point in $G$. Now if $f(z_n)=0$ for all $n\in\mathbb N$, the identity theorem implies $f\equiv 0$ on $G$.
Am I correct?