The effect of the ion transit resonance on the resistive magnetohydrodynamic modes