Now that she knows what it feels like to be on the receiving end of a rude comment publicly made, maybe she'll think twice about dishing them out next time.
Most teenagers are pretty resilient, and have a lot to learn. You're unlikely to have done any harm.