# Right Hand Rule for Proton Magnetic Field

I thought that right hand rule was for find the magnetic field generated by a current, where your thumb point in direction of the current. However, I was watching something that said we can curl our fingers in the direction of the proton's spin, and that will give us the field direction. Where does that right hand rule come from?