Alternating current fed through a positive diode passes only the positive half of the wave.