I am reviewing some fundamental topological concepts, and tried to recollect what it meant for a topological space $X$ to be locally homeomorphic to another topological space $Y$.
'My Definition': I would have said that $X$ is locally homeomorphic to $Y$ if for every point $x\in X$ there exists an open neighborhood $U$ of $x$ which is homeomorphic to some subspace $V\subseteq Y$.
However, when checking against what the internet said, I found that a local homeomorphism is a map $f:X\longrightarrow Y$ such that each $x\in X$ has an open neighborhood $U$ such that $f(U)$ is open in $Y$ and $f$ restricted to $U$ is a homeomorphism. I suppose saying that $X$ and $Y$ are locally homeomorphic is supposed to mean that there exists such a local homeomorphism $X\longrightarrow Y$.
I would like to understand whether there is a difference between my definition and the second definition I gave.
Why, in the second definition, does one require $f(U)$ to be open in $Y$? What could go wrong if one wouldn't require this?