Perhaps he didn't realise it.
Make it about you. As in, "I'm sure you would never have done this if you knew how I would feel about it, but when you did __________ it really hurt me."
My best advice is to wait until you're no longer angry or upset. Confronting him now would only lead to shouting and those really frustrating anger tears that come out just when you're trying to appear strong. Give it a while and just say very calmly "you know when you did/said that the other day, you really upset me". That way you avoid falling into the 'hysterical women, I can't figure them out!' trap. Good luck.
Definitely wait until you're not angry anymore. Sleep on it. I usually confide in a close friend and get a different side of view to my own. Then I confront my partner. I use this when one of my best friends has offended me too, works like a charm!