Hi I am new here so treat me tenderly !
I think that if you have admitted and are aware that what you have done is not right and that in the future you will try your hardest not to make the same mistake (you proberly will most of us parents normaly repeat and feel even worse as we are human) then you are there, yes you made a mistake but hey which one of us parents havent ? It is not the end of the world as no one has died and your child will recover (already has in all honesty) and I think you are a fantastic parent for allowing your child to reach that age without losing it before !