According to Wikipedia :
A function $f:X→Y$ between two topological spaces is called a local homeomorphism if every point $x\in X$ has an open neighborhood $U$ whose image $f(U)$ is open in $Y$ and the restriction $f\rvert_U:U→f(U)$ is a homeomorphism (where the respective subspace topologies are used on $U$ and on $f(U)$.
However, if we only ask that for every $x \in X$ there is a neighborhood $U$ such that $f\rvert_U:U→f(U)$ is a homeomorphism, do we get a local homeomorphism? It seems to me that yes but I'm sure I'm wrong because this definition would be simpler.
Let $x \in X$ and $U$ a neighborhood of $x$ such that $f\rvert_U : U \rightarrow f(U)$ is a homeomorphism. There exists an open $O$ such that $x \in O \subseteq U$ so $f(x) \in f(O) \subseteq f(U)$ and $f(O) = f\rvert_U(O)$ is open because $f\rvert_U$ is a homeomorphism. Moreover, $f\rvert_O : O \rightarrow f(O)$ is a homeomorphism because $O \subseteq U$. So the open $O$ satisfies the first definition.
And the other implication is obvious so the two definitions would be equivalents.
Can someone explain me where is my mistake?
EDIT: So we should ask that for every $x \in X$ there is a neighborhood $U$ such that $f(U)$ is a neighborhood of $f(x)$ and $f\rvert_U:U→f(U)$ is a homeomorphism?
EDIT2: If we ask that for every $ \in $ there is a neighborhood $U$ such that $f(U)$ is a neighborhood of $f(x)$ and $f\rvert_U: U \rightarrow f(U)$ is a homeomorphism :
Let $O_X$ an open of $X$ such that $x \in O_X \subseteq U$ and $O_Y$ an open of $Y$ such that $f(x) \in O_Y \subseteq f(U)$ then we consider the open $O_X \cap f^{-1}(O_Y)$ whose image $f(O_X) \cap O_Y$ is an open of $Y$ (because it is an open of $O_Y$ and $O_Y$ is open) and we have a homeomorphism $\overline{f} : O_X \cap f^{-1}(O_Y) \rightarrow f(O_Y) \cap O_Y$.
However I don't understand the terminology of étale space because we say that $X$ is an étale space of $Y$ if there is a local homeomorphism $f : X \rightarrow Y$ so an open subset of $Y$ would be an étale space. Am I wrong? Thank you