Magnetic moments and the proton structure function