Reading a book I met the following claim, and I don't understand how to justify it. [Actually I misunderstood the claim, below is the corrected version of it]
Let $X$ be a variety and $E\subset X$ a divisor. Suppose we have a global section $$ s: \mathcal{O}_X\to \mathcal{O}_X(E) $$ such that the vanishing locus of $s$ is a divisor $D\subset X$, and that $s$ vanishes of order $1$ there. Under these assumptions, it follows that $L(D)$ and $L(E)$ are isomorphic.
Why is this the case?