Probably the ligaments went pop.
A bit of RICE - rest, ice, compression and elevation, then off to the doc tomorrow to have an X-ray. Stay off it until then, to avoid chipping anything if you did snap a bone (which I doubt, though).
Hope it don't take too long to settle down.
Cheers
Mick