9.3.2 Adjustable Regulator Circuit With Improved Ripple Rejection
C2 helps to stabilize the voltage at the adjustment pin, which helps reject noise. Diode D1 exists to discharge C2 in case the output is shorted to ground.
Figure 13. Adjustable Regulator Circuit with Improved Ripple Rejection