I was uncoiling a spring that did that to me.

Not much you can do unfortunately. It hurts like a ***** because your finger has a lot of nerve endings, and its going to hurt for a looooooooonggggggg time.