Magnetic stars and rotation