A capacitor should be added at the output node of the Buck. In a steady state, the output voltage is constant if voltage ripple is supposed small enough. Then when the switch is turned on, the voltage drop on the inductor is VIN-VO. Here, VIN is the input voltage, and VO is the output voltage. According to di/dt=(VIN-VO)/L, so di/dt is close to a constant. When the switch is off, di/dt=(0-VO)/L=-VO/L, the slope is close to a constant too if the voltage drop on diode is neglectable.