I am currently going through Lang's Algebra, and I've come across a definition that a friend had warned me I would eventually encounter and said that Lang had defined incorrectly. He then cited the 'Terminology' section of this page: https://en.wikipedia.org/wiki/Monomorphism.
Lang's definition is as follows:
"If a homomorphism $u: N \rightarrow M$ is such that $$0 \rightarrow N \xrightarrow{u} M$$ is exact, then we also say that $u$ is a monomorphism or an embedding. Dually, if $$N \xrightarrow{u} M \rightarrow 0$$ is exact, we say that $u$ is an epimorphism."
It seems to me that this is actually the same definition as the one currently in use today in category theory. Is my friend incorrect and misremembering the source of the wrong definition, or is Lang's definition indeed incorrect?