Let $R$ be a ring, $S$ a multiplicatively closed set in $R$, and $S^{-1}R$ the ring of fractions. Let $f:R \rightarrow S^{-1}R$ send $r \to r/1$. I know this mapping is injective for fields of fractions. But I don't think this is true for when $R$ is not an integral domain. Given $r/1=s/1$, by definition we have $t(r-s)=0$ for some $t \in S$, but no guarantee that $r-s=0$.
First, I'm looking for confirmation on whether this reasoning is correct (or not). Also, I'm having trouble thinking of a concrete counterexample, as I don't have much experience with rings of fractions. Any help would be appreciated, thanks!
EDIT: fixed my definition of equivalency in the ring of fractions