ADVICE: trust issues

Basically I was going through a hard time last week and did something I regretted which is too personal to say. I told my boyfriend what I did and he went and told his best friend. I’m annoyed but he doesn’t understand why ?