I assume you mean your boss reprimanding you, not you reprimanding your boss.
I have no respect for any boss who reprimands in public. It is shameful and a dirty trick to pull, and shows that the boss has no respect or consideration for the employee. Back when I worked at McDonald’s an event like this occurred, where another manager chose to yell at me (I was a manager too, she had been there for longer though) in the middle of the cash register area where all the customers and workers could hear and watch. It was completely humiliating and I was absolutely furious with her behaviour. So I went and talked with the head manager of the store, who apologized profusely to me for her actions, and asked the manager for her resignation that day. The way the king boss handled the situation really highlighted the differences between a shit boss and a great boss, and I am glad to say I’ve never had to deal with a shit boss since that fateful day.