Let $U,V\subseteq\Bbb C$ be open sets, let $f:U\to\Bbb C$ be holomorphic.
If we want to prove that $f$ is a conformal map $U\to V$, my teacher said that is enough to check that $f$ is locally conformal on $U$ (i.e. $f'$ never vanishes on $U$) and $f(\partial U)=\partial V$.
I think it works for simply connected open subsets, not for arbitrarily open subsets; to me this is a topological problem.
I'm quite disoriented: why is this true? I know that an holomorphic map is locally conformal iff is locally injective, but this does not imply global injectivity! How can be injectivity and surjectivity ensured by the condition on the boundary?
EDIT: by conformal, here I mean biholomorphic, i.e. holomorphic and bijective (the holomorphy of the the inverse follows from this).