@rosiejaune you can’t speak for everyone! A good rant, often with swearing, helps me let go of irritations.
That’s more effective to someone, than on my own.
There’s a great book written a couple of years back in fact, with research into swearing and one point was how it can lower stress. There’s a reason most (all?) culture swear, and swearing keeps evolving.
My husband happily listens. Occasionally, he’s not in the mood and he says so.
I think you could have been more supportive OP, this is your husband and it’s good to help him destress. Only if it’s not ALL the time though!
I presume the “grow up” comment was specifically related to you not wanting to hear swearing. Again, all the time - dull and annoying for you. But hearing swear words occasionally? “Grow up” isn’t a polite way to express it - but I agree with the sentiment, swearing won’t hurt you.
Despite all that, you know how it felt on the receiving end, so you get to decide if he was unreasonable. But in general, I’d say it’s a kind thing to let a partner destress with a good rant.