Consider the rational intervals defined as $$[a,b)_Q= \{r : a \leq r < b; r \in \mathbb{Q} \},a,b\in \mathbb{Q}, a<b. $$ Let $A$ be the class of all sets of rationals that can be produced as finite unions of rational intervals. Then $A$ is a ring not containing any sets of the form $\{a\}$. The $\sigma$-additive set function $\mu: A \to R$ is defined on the rational intervals the usual way: $\mu([a,b)_Q)=b-a$. By this $\mu$ is defined on $A$.
For every rational number $a$ the set $\{a\}$ clearly belongs to the $\sigma$-ring generated by $A$. Indeed, $\{a\} = \bigcap_{n\in\mathbb{N}} [a,a+1/n)_Q$. As a result, one has on the one hand $\mu(\{r\}) = 0$ for all rationals and, on the other hand $\mu((a,b]_Q) = \sum_{r\in[a,b)_Q}\mu(\{r\}) = \sum_{r\in[a,b)_Q} 0 = 0$ and not $b-a$ as it ought to be by the definition.
Where is the mistake?