Unity: Rotate a quaternion in a specific axis

Just putting this here for quick reference; rotate a quaternion 180 degrees in the Y: –

transform.rotation *= Quaternion.Euler(0,180f,0);