Edit: That will allow the inductor current to reach the maximum current (red trace) where the capacitor voltage reaches zero and, at which point, the diode starts to carry the current, The current then decays to zero as determined by the resistive and diode losses from the current.